From: vro Date: Thu, 15 Aug 2019 04:57:23 +0000 (+0300) Subject: // A minor improvement: display status is not needed, the check on presence of the... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR0_DMUReviewer_2_1140;p=occt-copy.git // A minor improvement: display status is not needed, the check on presence of the object in the interactive context is enough. --- diff --git a/src/AIS/AIS_InteractiveContext_1.cxx b/src/AIS/AIS_InteractiveContext_1.cxx index c49b2108a9..c52cae9de8 100644 --- a/src/AIS/AIS_InteractiveContext_1.cxx +++ b/src/AIS/AIS_InteractiveContext_1.cxx @@ -475,7 +475,7 @@ AIS_StatusOfPick AIS_InteractiveContext::Select (const AIS_SelectionScheme theSe { Handle(AIS_InteractiveObject) anIO = Handle(AIS_InteractiveObject)::DownCast(myLastinMain->Selectable()); if (!anIO.IsNull() && - IsDisplayed(anIO)) + myObjects.IsBound(anIO)) { aPickedOwners.Append (myLastinMain); }