]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
flush updated is moved to be after preview blocked to improve performance.
authornds <nds@opencascade.com>
Wed, 22 Nov 2017 07:12:40 +0000 (10:12 +0300)
committernds <nds@opencascade.com>
Wed, 22 Nov 2017 07:13:20 +0000 (10:13 +0300)
src/XGUI/XGUI_Workshop.cpp

index 1e7e18aba3c1fa9a8fd4c90d8bdab0dcf0f968dc..d6791ab6556564ce5ca5bd731c99ebe28ed26072 100755 (executable)
@@ -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<Config_FeatureMessage> 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);