mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 09:20:35 +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);
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user