]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2657: Impossible to create sketch line with start point in the origin
authorazv <azv@opencascade.com>
Fri, 28 Sep 2018 06:58:46 +0000 (09:58 +0300)
committerazv <azv@opencascade.com>
Fri, 28 Sep 2018 06:59:17 +0000 (09:59 +0300)
Set initial DoF to negative value to be able to determine a just created sketch.

src/SketchSolver/SketchSolver_Group.cpp

index eea48cbd7138f7f3075243cf5f3f998a08f819a4..d8766bd0e9f3f354c251a337e58034daa6890b6f 100644 (file)
@@ -76,7 +76,7 @@ static void sendMessage(const char* theMessageName,
 SketchSolver_Group::SketchSolver_Group(const CompositeFeaturePtr& theWorkplane)
   : mySketch(theWorkplane),
     myPrevResult(PlaneGCSSolver_Solver::STATUS_UNKNOWN),
-    myDOF(0),
+    myDOF(-1),
     myIsEventsBlocked(false),
     myMultiConstraintUpdateStack(0)
 {