mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025335: Visualization - method ::SelectedShape() in AIS_LocalContext and AIS_InteractiveContext overrides shape transformation
Shape location overriding fixed by combining AIS object transformation and shape location. Also incorrect highlight presentation (and sensitive) placement was possible.
This commit is contained in:
@@ -379,10 +379,6 @@ void AIS_Shape::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
|
||||
static TopAbs_ShapeEnum TypOfSel;
|
||||
TypOfSel = AIS_Shape::SelectionType(aMode);
|
||||
TopoDS_Shape shape = myshape;
|
||||
if( HasTransformation() ) {
|
||||
gp_Trsf trsf = Transformation();
|
||||
shape = shape.Located(TopLoc_Location(trsf)*shape.Location());
|
||||
}
|
||||
|
||||
// POP protection against crash in low layers
|
||||
|
||||
|
Reference in New Issue
Block a user