From 8e2415b47898189e3450a92053b7fb6804e914fe Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 27 May 2020 16:37:45 +0300 Subject: [PATCH] bos #19184: Objects are still selected when a feature has been applied --- src/PartSet/PartSet_Module.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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(); } //****************************************************** -- 2.39.2