mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0029993: Visualization - AIS_TextLabel computes selection primitive only for attachment point
The text label is selected as a rectangle (adds a sensitive object - Select3D_SensitiveFace). The bounding box has been resized to fit the sensitive rectangle. Transform persistent has been added to AIS_TextLabel to correctly position the sensitive rectangle. The findConnectedObject function has also been changed to correctly set transform persistence.
This commit is contained in:
@@ -130,7 +130,7 @@ void SelectMgr_ViewerSelector3d::DisplaySensitive (const Handle(V3d_View)& theVi
|
||||
{
|
||||
if (aSelIter.Value()->GetSelectionState() == SelectMgr_SOS_Activated)
|
||||
{
|
||||
SelectMgr::ComputeSensitivePrs (aStruct, aSelIter.Value(), anObj->Transformation(), Handle(Graphic3d_TransformPers)());
|
||||
SelectMgr::ComputeSensitivePrs (aStruct, aSelIter.Value(), anObj->Transformation(), anObj->TransformPersistence());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user