From: akl Date: Tue, 16 Sep 2014 11:33:19 +0000 (+0400) Subject: Fixing visibility of standalone vertices when 'Vertices' display mode is switched... X-Git-Tag: V7_5_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd2026a3833d537c9034ba90d52d2aa2f16468c8;p=modules%2Fgeom.git Fixing visibility of standalone vertices when 'Vertices' display mode is switched off. --- diff --git a/src/OBJECT/GEOM_Actor.cxx b/src/OBJECT/GEOM_Actor.cxx index 851b83ab1..a5cdfbfcb 100644 --- a/src/OBJECT/GEOM_Actor.cxx +++ b/src/OBJECT/GEOM_Actor.cxx @@ -357,7 +357,7 @@ SetVisibility(int theVisibility) myOneFaceEdgeActor->SetVisibility(theVisibility && (myDisplayMode == (int)eWireframe || myDisplayMode == (int)eShadingWithEdges) && !myIsSelected); myIsolatedEdgeActor->SetVisibility(theVisibility && !myIsSelected); - myVertexActor->SetVisibility(theVisibility && myVerticesMode && (!myIsSelected && !myIsPreselected));// must be added new mode points + myVertexActor->SetVisibility(theVisibility && (isOnlyVertex || (myVerticesMode && (!myIsSelected && !myIsPreselected))));// must be added new mode points } @@ -398,8 +398,13 @@ GEOM_Actor ::SetVerticesMode(bool theMode) { myVerticesMode = theMode; - theMode ? myPreHighlightProp->SetPointSize(SALOME_POINT_SIZE+2) : myPreHighlightProp->SetPointSize(0); - theMode ? myHighlightProp->SetPointSize(SALOME_POINT_SIZE) : myHighlightProp->SetPointSize(0); + if ( theMode || isOnlyVertex ) { + myPreHighlightProp->SetPointSize(SALOME_POINT_SIZE+2); + myHighlightProp->SetPointSize(SALOME_POINT_SIZE); + } else { + myPreHighlightProp->SetPointSize(0); + myHighlightProp->SetPointSize(0); + } SetModified(); }