From: nds Date: Mon, 8 Dec 2014 11:51:58 +0000 (+0300) Subject: Issue #253 - Impossible to move dimensions in a Sketch X-Git-Tag: V_0.6.0^2~6^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9707e43cd67f08ee238af04d48b356b9e23a0bef;p=modules%2Fshaper.git Issue #253 - Impossible to move dimensions in a Sketch It avoids the edition operation start if the creation operation is active. --- 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();