mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -4254,6 +4254,10 @@ static Handle(AIS_InteractiveObject) findConnectedObject (const TCollection_Asci
|
||||
aConnected->SetDisplayMode (aPrs->DisplayMode());
|
||||
}
|
||||
aConnected->Connect (aPrs, aPrs->LocalTransformationGeom());
|
||||
if (!aPrs->TransformPersistence().IsNull())
|
||||
{
|
||||
aConnected->SetTransformPersistence (aPrs->TransformPersistence());
|
||||
}
|
||||
ViewerTest::Display (theName, aConnected, false);
|
||||
return aConnected;
|
||||
}
|
||||
|
Reference in New Issue
Block a user