From: nds Date: Fri, 30 Dec 2016 11:28:04 +0000 (+0300) Subject: #1946 Edit sketch - constraints are disabled X-Git-Tag: V_2.7.0~351^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=297465560876d49b430da14da604fa8c08a7f6a0;p=modules%2Fshaper.git #1946 Edit sketch - constraints are disabled --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 3947c7c3d..51bcec762 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -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