From: azv Date: Tue, 30 Aug 2016 06:06:31 +0000 (+0300) Subject: Fix wrong unprompted update of entities on non-active sketches X-Git-Tag: V_2.5.0~115 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9baaa9343a9d1c026a6467ec2a864c2c317ab91b;p=modules%2Fshaper.git Fix wrong unprompted update of entities on non-active sketches --- diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index 9447f1e1e..2dbb20336 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -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(); + } } // ============================================================================