From e61f186a937cec7398af664f67eb665b57ba142d Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 22 May 2014 12:02:49 +0400 Subject: [PATCH] Recalculations of constraints according to the moved features --- src/SketchSolver/SketchSolver_ConstraintManager.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) -- 2.39.2