From: azv Date: Fri, 28 Sep 2018 06:58:46 +0000 (+0300) Subject: Issue #2657: Impossible to create sketch line with start point in the origin X-Git-Tag: CEA_2018-2~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5fb6a80c4e86e21b1181b4e6ee940d946b5c52e4;p=modules%2Fshaper.git Issue #2657: Impossible to create sketch line with start point in the origin Set initial DoF to negative value to be able to determine a just created sketch. --- diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index eea48cbd7..d8766bd0e 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -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) {