From 1f42d97549fb23576083abe1bbd742a206d60c81 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 30 Dec 2014 15:49:36 +0300 Subject: [PATCH] Issue #351 - constraint is not applied on preselected segments A correction to avoid hang up on the fix contraint creation. --- src/PartSet/PartSet_Module.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index fb68b9e4d..9714f41a5 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -130,6 +130,11 @@ void PartSet_Module::operationCommitted(ModuleBase_Operation* theOperation) { if (theOperation->isEditOperation()) return; + // 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 + myWorkshop->viewer()->AISContext()->ClearSelected(); + /// Restart sketcher operations automatically FeaturePtr aFeature = theOperation->feature(); std::shared_ptr aSPFeature = @@ -138,6 +143,7 @@ void PartSet_Module::operationCommitted(ModuleBase_Operation* theOperation) myRestartingMode == RM_EmptyFeatureUsed)) { myLastOperationId = theOperation->id(); myLastFeature = myRestartingMode == RM_LastFeatureUsed ? theOperation->feature() : FeaturePtr(); + launchOperation(myLastOperationId); } breakOperationSequence(); -- 2.39.2