From: nds Date: Thu, 25 Feb 2016 14:33:10 +0000 (+0300) Subject: #1331 perfromance in sketch X-Git-Tag: V_2.2.0~67 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9612ac6fcfb6e8c51c880b3391463931e558acf8;p=modules%2Fshaper.git #1331 perfromance in sketch --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 768c0d419..d80df1ba4 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -252,7 +252,7 @@ bool XGUI_Displayer::erase(ObjectPtr theObject, const bool theUpdateViewer) Handle(AIS_InteractiveObject) anAIS = anObject->impl(); 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(); if (!anIO.IsNull()) { emit beforeObjectErase(aObj, aAISObj); - aContext->Remove(anIO, false); + aContext->Remove(anIO, false/*update viewer*/); aErased = true; } }