]> OCCT Git - occt.git/commitdiff
Fixed mapping the given an interactive object and a corresponding status passed in...
authormgn <maxim.glibin@opencascade.com>
Thu, 25 Feb 2021 14:56:33 +0000 (17:56 +0300)
committermgn <maxim.glibin@opencascade.com>
Thu, 25 Feb 2021 14:56:33 +0000 (17:56 +0300)
src/AIS/AIS_InteractiveContext.cxx

index fe54d23a4eae5ab25649398abcfa192b396e9c70..225004aca4170484bc15022814a5ca064b7a19f1 100644 (file)
@@ -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