From: azv Date: Thu, 22 May 2014 08:02:49 +0000 (+0400) Subject: Recalculations of constraints according to the moved features X-Git-Tag: V_0.2~29^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FSketchSolver_Linux;p=modules%2Fshaper.git Recalculations of constraints according to the moved features --- diff --git a/src/SketchSolver/SketchSolver_ConstraintManager.cpp b/src/SketchSolver/SketchSolver_ConstraintManager.cpp index c83e865b8..4a47879fa 100644 --- a/src/SketchSolver/SketchSolver_ConstraintManager.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintManager.cpp @@ -97,9 +97,6 @@ void SketchSolver_ConstraintManager::processEvent(const Events_Message* theMessa if (aFeature) updateEntity(aFeature); } - - // Solve the set of constraints - resolveConstraints(); } else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_FEATURE_DELETED)) { @@ -121,6 +118,11 @@ void SketchSolver_ConstraintManager::processEvent(const Events_Message* theMessa } } } + else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_FEATURES_MOVED)) + { + // Solve the set of constraints + resolveConstraints(); + } } bool SketchSolver_ConstraintManager::changeWorkplane(boost::shared_ptr theSketch)