From: vsr Date: Thu, 12 Nov 2009 13:38:56 +0000 (+0000) Subject: TC5.1.3: a shape is shown with edges direction by default in VTK, but shouldn't be... X-Git-Tag: V5_1_3rc3~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e39164dd0ecc56a720944563e2bf2afaecefb9c7;p=modules%2Fgeom.git TC5.1.3: a shape is shown with edges direction by default in VTK, but shouldn't be (additional minor fix) --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index aca73deae..57d7252a2 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -849,9 +849,7 @@ void GEOM_Displayer::Update( SALOME_VTKPrs* prs ) } else { - bool isVector = false; - if (myType == GEOM_VECTOR) isVector = true; - theActors = GEOM_AssemblyBuilder::BuildActors( myShape, 0, 0, Standard_True, isVector ); + theActors = GEOM_AssemblyBuilder::BuildActors( myShape, 0, 0, Standard_True, myType == GEOM_VECTOR ); } theActors->InitTraversal();