From 9707e43cd67f08ee238af04d48b356b9e23a0bef Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 8 Dec 2014 14:51:58 +0300 Subject: [PATCH] Issue #253 - Impossible to move dimensions in a Sketch It avoids the edition operation start if the creation operation is active. --- src/PartSet/PartSet_Module.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 2c055ffd6..7baed12d8 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -302,6 +302,16 @@ void PartSet_Module::propertyPanelDefined(ModuleBase_Operation* theOperation) void PartSet_Module::onSelectionChanged() { + ModuleBase_Operation* aOperation = myWorkshop->currentOperation(); + bool isSketcherOp = false; + // An edit operation is enable only if the current opeation is the sketch operation + if (aOperation && myCurrentSketch) { + if (PartSet_Tools::sketchPlane(myCurrentSketch)) + isSketcherOp = (aOperation->id().toStdString() == SketchPlugin_Sketch::ID()); + } + if (!isSketcherOp) + return; + // Editing of constraints can be done on selection ModuleBase_ISelection* aSelect = myWorkshop->selection(); QList aSelected = aSelect->getSelected(); -- 2.39.2