mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0030218: Visualization - custom selection presentation is not updated within SelectMgr_SelectableObject::UpdateTransformation()
SelectMgr_SelectableObject now assigns transformation to mySelectionPrs and myHilightPrs presentations. Removed confusing method PrsMgr_PresentableObject::UpdateTransformation() with presentation as argument.
This commit is contained in:
@@ -256,6 +256,14 @@ void SelectMgr_SelectableObject::UpdateTransformation()
|
||||
}
|
||||
|
||||
PrsMgr_PresentableObject::UpdateTransformation();
|
||||
if (!mySelectionPrs.IsNull())
|
||||
{
|
||||
mySelectionPrs->SetTransformation (TransformationGeom());
|
||||
}
|
||||
if (!myHilightPrs.IsNull())
|
||||
{
|
||||
myHilightPrs->SetTransformation (TransformationGeom());
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@@ -349,6 +357,7 @@ Handle(Prs3d_Presentation) SelectMgr_SelectableObject::GetHilightPresentation (c
|
||||
myHilightPrs = new Prs3d_Presentation (theMgr->StructureManager());
|
||||
myHilightPrs->SetTransformPersistence (TransformPersistence());
|
||||
myHilightPrs->SetClipPlanes (myClipPlanes);
|
||||
myHilightPrs->SetTransformation (TransformationGeom());
|
||||
}
|
||||
|
||||
return myHilightPrs;
|
||||
@@ -366,6 +375,7 @@ Handle(Prs3d_Presentation) SelectMgr_SelectableObject::GetSelectPresentation (co
|
||||
mySelectionPrs = new Prs3d_Presentation (theMgr->StructureManager());
|
||||
mySelectionPrs->SetTransformPersistence (TransformPersistence());
|
||||
mySelectionPrs->SetClipPlanes (myClipPlanes);
|
||||
mySelectionPrs->SetTransformation (TransformationGeom());
|
||||
}
|
||||
|
||||
return mySelectionPrs;
|
||||
|
Reference in New Issue
Block a user