From: vsv Date: Wed, 27 May 2020 13:37:45 +0000 (+0300) Subject: bos #19184: Objects are still selected when a feature has been applied X-Git-Tag: V9_5_0rc1~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e2415b47898189e3450a92053b7fb6804e914fe;p=modules%2Fshaper.git bos #19184: Objects are still selected when a feature has been applied --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 969ffe1ac..536c95cf4 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -340,15 +340,7 @@ void PartSet_Module::operationCommitted(ModuleBase_Operation* theOperation) /// Restart sketcher operations automatically if (!mySketchReentrantMgr->operationCommitted(theOperation)) { - - ModuleBase_OperationFeature* aFOperation = - dynamic_cast(theOperation); - if (aFOperation && !aFOperation->isEditOperation()) { - // the selection is cleared after commit the create operation - // in order to do not use the same selected objects in the restarted operation - // for common behaviour, the selection is cleared even if the operation is not restarted - getWorkshop()->selector()->clearSelection(); - } + getWorkshop()->selector()->clearSelection(); } } @@ -360,6 +352,8 @@ void PartSet_Module::operationAborted(ModuleBase_Operation* theOperation) /// deactivate of overconstraint listener should be performed after Sketch abort (#2176) if (PartSet_SketcherMgr::isSketchOperation(theOperation)) overconstraintListener()->setActive(false); + + getWorkshop()->selector()->clearSelection(); } //******************************************************