From 5fb6a80c4e86e21b1181b4e6ee940d946b5c52e4 Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 28 Sep 2018 09:58:46 +0300 Subject: [PATCH] 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. --- src/SketchSolver/SketchSolver_Group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2