From: nds Date: Wed, 22 Nov 2017 07:12:40 +0000 (+0300) Subject: flush updated is moved to be after preview blocked to improve performance. X-Git-Tag: V_2.10.0RC~149 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f879c93b5601b7d745a274b8340bd0826d53d0d;p=modules%2Fshaper.git flush updated is moved to be after preview blocked to improve performance. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 1e7e18aba..d6791ab65 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -617,8 +617,6 @@ void XGUI_Workshop::fillPropertyPanel(ModuleBase_Operation* theOperation) aWidget->restoreValue(); aWidget->enableFocusProcessing(); } - ModuleBase_Tools::flushUpdated(aFeature); - // update visible state of Preview button std::shared_ptr aFeatureInfo; #ifdef HAVE_SALOME @@ -647,6 +645,10 @@ void XGUI_Workshop::fillPropertyPanel(ModuleBase_Operation* theOperation) new Events_Message(Events_Loop::eventByName(EVENT_PREVIEW_BLOCKED))); Events_Loop::loop()->send(aMsg); } + // if update happens after preview is blocked, it does nothing when blocked + // it improves performance for valid objects on feature start + ModuleBase_Tools::flushUpdated(aFeature); + myPropertyPanel->setModelWidgets(aWidgets); aFOperation->setPropertyPanel(myPropertyPanel);