mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0027867: Visualization - AIS_InteractiveContext::HasSelectedShape() returns true if selected interactive is instance of AIS_Shape only
This commit is contained in:
parent
49e5d23824
commit
4aaadad7bc
@ -1200,9 +1200,13 @@ Standard_Boolean AIS_InteractiveContext::HasSelectedShape() const
|
||||
{
|
||||
return myLocalContexts(myCurLocalIndex)->HasSelectedShape();
|
||||
}
|
||||
if (!mySelection->More())
|
||||
return Standard_False;
|
||||
|
||||
Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast (SelectedInteractive());
|
||||
return !aShape.IsNull();
|
||||
const Handle(StdSelect_BRepOwner) anOwner =
|
||||
Handle(StdSelect_BRepOwner)::DownCast (mySelection->Value());
|
||||
|
||||
return !anOwner.IsNull() && anOwner->HasShape();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user