From: sbh Date: Thu, 30 Oct 2014 15:37:52 +0000 (+0300) Subject: Issues #210 #211 #214 Correct edit behavior restored X-Git-Tag: V_0.5~58^2~2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c4e493610d2ac9f869bd8a4847ca0d37e123d7b;p=modules%2Fshaper.git Issues #210 #211 #214 Correct edit behavior restored --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 035444ba9..b304940d3 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -312,16 +312,16 @@ void PartSet_Module::onRestartOperation(std::string theName, ObjectPtr theObject ModuleBase_ISelection* aSelection = workshop()->selection(); // Initialise operation with preliminary selection aSketchOp->initSelection(aSelection, myWorkshop->viewer()); - } //else if (aFeature) { - //anOperation->setFeature(aFeature); + } else if (aFeature) { // In case of edit operation: set the previously created feature to the operation + anOperation->setFeature(aFeature); ////Deactivate result of current feature in order to avoid its selection - //XGUI_Displayer* aDisplayer = xWorkshop()->displayer(); - //std::list aResults = aFeature->results(); - //std::list::const_iterator aIt; - //for (aIt = aResults.cbegin(); aIt != aResults.cend(); ++aIt) { - // aDisplayer->deactivate(*aIt); - //} - //} + XGUI_Displayer* aDisplayer = xWorkshop()->displayer(); + std::list aResults = aFeature->results(); + std::list::const_iterator aIt; + for (aIt = aResults.cbegin(); aIt != aResults.cend(); ++aIt) { + aDisplayer->deactivate(*aIt); + } + } sendOperation(anOperation); xWorkshop()->actionsMgr()->updateCheckState(); }