mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Fixing visibility of standalone vertices when 'Vertices' display mode is switched off.
This commit is contained in:
parent
be7aba2cac
commit
bd2026a383
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user