]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix wrong unprompted update of entities on non-active sketches
authorazv <azv@opencascade.com>
Tue, 30 Aug 2016 06:06:31 +0000 (09:06 +0300)
committerazv <azv@opencascade.com>
Tue, 30 Aug 2016 06:06:31 +0000 (09:06 +0300)
src/SketchSolver/SketchSolver_Group.cpp

index 9447f1e1efd410d80bdadbdaea240fd9ac80d86f..2dbb20336ad790d222b820619c1ed0e4c9ebfabc 100644 (file)
@@ -621,6 +621,11 @@ void SketchSolver_Group::removeConstraint(ConstraintPtr theConstraint)
     }
   if (aCIter != myConstraints.end())
     myConstraints.erase(aCIter);
+  // empty group => clear storage
+  if (myConstraints.empty()) {
+    myStorage = StoragePtr();
+    updateWorkplane();
+  }
 }
 
 // ============================================================================