]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fixing visibility of standalone vertices when 'Vertices' display mode is switched...
authorakl <alexander.kovalev@opencascade.com>
Tue, 16 Sep 2014 11:33:19 +0000 (15:33 +0400)
committerakl <alexander.kovalev@opencascade.com>
Tue, 16 Sep 2014 11:33:19 +0000 (15:33 +0400)
src/OBJECT/GEOM_Actor.cxx

index 851b83ab11e1422e0ab7b11945d8c174d1fc8cfa..a5cdfbfcb38ab19483b24a5689de6a4d0bb7f93f 100644 (file)
@@ -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();
 }