Fixing visibility of standalone vertices when 'Vertices' display mode is switched off.

This commit is contained in:
akl 2014-09-16 15:33:19 +04:00
parent be7aba2cac
commit bd2026a383

View File

@ -357,7 +357,7 @@ SetVisibility(int theVisibility)
myOneFaceEdgeActor->SetVisibility(theVisibility && (myDisplayMode == (int)eWireframe || myDisplayMode == (int)eShadingWithEdges) && !myIsSelected); myOneFaceEdgeActor->SetVisibility(theVisibility && (myDisplayMode == (int)eWireframe || myDisplayMode == (int)eShadingWithEdges) && !myIsSelected);
myIsolatedEdgeActor->SetVisibility(theVisibility && !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) ::SetVerticesMode(bool theMode)
{ {
myVerticesMode = theMode; myVerticesMode = theMode;
theMode ? myPreHighlightProp->SetPointSize(SALOME_POINT_SIZE+2) : myPreHighlightProp->SetPointSize(0); if ( theMode || isOnlyVertex ) {
theMode ? myHighlightProp->SetPointSize(SALOME_POINT_SIZE) : myHighlightProp->SetPointSize(0); myPreHighlightProp->SetPointSize(SALOME_POINT_SIZE+2);
myHighlightProp->SetPointSize(SALOME_POINT_SIZE);
} else {
myPreHighlightProp->SetPointSize(0);
myHighlightProp->SetPointSize(0);
}
SetModified(); SetModified();
} }