]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1946 Edit sketch - constraints are disabled
authornds <nds@opencascade.com>
Fri, 30 Dec 2016 11:28:04 +0000 (14:28 +0300)
committernds <nds@opencascade.com>
Fri, 30 Dec 2016 11:32:31 +0000 (14:32 +0300)
src/PartSet/PartSet_Module.cpp

index 3947c7c3dd38a5a62d673a71ca1b5501ab99dff9..51bcec762811c2ca6803d7958fb780426fc17963 100755 (executable)
@@ -340,7 +340,6 @@ void PartSet_Module::operationStarted(ModuleBase_Operation* theOperation)
         }
       }
     } if (!isOperationCommitted) {
-      workshop()->updateCommandStatus();
       aWorkshop->connectToPropertyPanel(true);
       updateSketcherOnStart(aFOperation);
       updatePresentationsOnStart(aFOperation);
@@ -361,6 +360,10 @@ void PartSet_Module::operationStarted(ModuleBase_Operation* theOperation)
         XGUI_Displayer* aDisplayer = aWorkshop->displayer();
         aDisplayer->updateViewer();
       }
+      /// state of command actions should be updated after displayed objects modification because
+      /// deactivation(for example) of objects may influence on selection in the viewer
+      /// State of command actions may depend on selection in the viewer(e.g. Sketch)
+      workshop()->updateCommandStatus();
     }
     if (aPostonedWidgetActivation) {
       // if the widget is an empty in the chain of activated widgets, the current operation