From 297465560876d49b430da14da604fa8c08a7f6a0 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 30 Dec 2016 14:28:04 +0300 Subject: [PATCH] #1946 Edit sketch - constraints are disabled --- src/PartSet/PartSet_Module.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2