]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #351 - constraint is not applied on preselected segments
authornds <natalia.donis@opencascade.com>
Tue, 30 Dec 2014 12:49:36 +0000 (15:49 +0300)
committernds <natalia.donis@opencascade.com>
Tue, 30 Dec 2014 12:49:36 +0000 (15:49 +0300)
A correction to avoid hang up on the fix contraint creation.

src/PartSet/PartSet_Module.cpp

index fb68b9e4d9f4695078c25e1954d6d8f190d33703..9714f41a54fd2fc31dcf91f8146006516d36a403 100644 (file)
@@ -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<SketchPlugin_Feature> 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();