]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1331 perfromance in sketch
authornds <nds@opencascade.com>
Thu, 25 Feb 2016 14:33:10 +0000 (17:33 +0300)
committernds <nds@opencascade.com>
Thu, 25 Feb 2016 14:33:10 +0000 (17:33 +0300)
src/XGUI/XGUI_Displayer.cpp

index 768c0d419a87515950c933273d7c7d2f03cc5456..d80df1ba40566297de77b1055556906334306953 100644 (file)
@@ -252,7 +252,7 @@ bool XGUI_Displayer::erase(ObjectPtr theObject, const bool theUpdateViewer)
     Handle(AIS_InteractiveObject) anAIS = anObject->impl<Handle(AIS_InteractiveObject)>();
     if (!anAIS.IsNull()) {
       emit beforeObjectErase(theObject, anObject);
-      aContext->Remove(anAIS);
+      aContext->Remove(anAIS, false/*update viewer*/);
       aErased = true;
     }
   }
@@ -599,7 +599,7 @@ bool XGUI_Displayer::eraseAll(const bool theUpdateViewer)
       Handle(AIS_InteractiveObject) anIO = aAISObj->impl<Handle(AIS_InteractiveObject)>();
       if (!anIO.IsNull()) {
         emit beforeObjectErase(aObj, aAISObj);
-        aContext->Remove(anIO, false);
+        aContext->Remove(anIO, false/*update viewer*/);
         aErased = true;
       }
     }