]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Recalculations of constraints according to the moved features SketchSolver_Linux
authorazv <azv@opencascade.com>
Thu, 22 May 2014 08:02:49 +0000 (12:02 +0400)
committerazv <azv@opencascade.com>
Thu, 22 May 2014 08:02:49 +0000 (12:02 +0400)
src/SketchSolver/SketchSolver_ConstraintManager.cpp

index c83e865b8a9b19f79a4d33e24f8f7d22fd35d5e6..4a47879faab6da65aadfed7598a0fe0620468d31 100644 (file)
@@ -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<SketchPlugin_Feature> theSketch)