From bd2026a3833d537c9034ba90d52d2aa2f16468c8 Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 16 Sep 2014 15:33:19 +0400 Subject: [PATCH] Fixing visibility of standalone vertices when 'Vertices' display mode is switched off. --- src/OBJECT/GEOM_Actor.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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(); } -- 2.39.2