From: mgn Date: Thu, 25 Feb 2021 14:56:33 +0000 (+0300) Subject: Fixed mapping the given an interactive object and a corresponding status passed in... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=3bd2f8ebbeaf59c306aad8af6afc827d0ff1106e;p=occt.git Fixed mapping the given an interactive object and a corresponding status passed in the setObjectStatus method. --- diff --git a/src/AIS/AIS_InteractiveContext.cxx b/src/AIS/AIS_InteractiveContext.cxx index fe54d23a4e..225004aca4 100644 --- a/src/AIS/AIS_InteractiveContext.cxx +++ b/src/AIS/AIS_InteractiveContext.cxx @@ -2440,7 +2440,7 @@ void AIS_InteractiveContext::setObjectStatus (const Handle(AIS_InteractiveObject { if (theStatus != AIS_DS_None) { - Handle(AIS_GlobalStatus) aStatus = new AIS_GlobalStatus (AIS_DS_Displayed, theDispMode, theSelectionMode); + Handle(AIS_GlobalStatus) aStatus = new AIS_GlobalStatus (theStatus, theDispMode, theSelectionMode); myObjects.Bind (theIObj, aStatus); } else