From 2c89860a381abe0f110760a443d4a949a2764f53 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 8 Jun 2018 23:47:06 +0200 Subject: [PATCH] Sketcher: Wrong DoF reported - Fixes #3503 --- src/Mod/Sketcher/App/SketchObjectPyImp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObjectPyImp.cpp b/src/Mod/Sketcher/App/SketchObjectPyImp.cpp index 7ee875994c..160c9aaa1d 100644 --- a/src/Mod/Sketcher/App/SketchObjectPyImp.cpp +++ b/src/Mod/Sketcher/App/SketchObjectPyImp.cpp @@ -293,8 +293,10 @@ PyObject* SketchObjectPy::addConstraint(PyObject *args) // if the geometry moved during the solve, then the initial solution is invalid // at this point, so a point movement may not work in cases where redundant constraints exist. // this forces recalculation of the initial solution (not a full solve) - if(this->getSketchObjectPtr()->noRecomputes) - this->getSketchObjectPtr()->setUpSketch(); + if(this->getSketchObjectPtr()->noRecomputes) { + this->getSketchObjectPtr()->setUpSketch(); + this->getSketchObjectPtr()->Constraints.touch(); // update solver information + } return Py::new_reference_to(Py::Long(ret)); } else if (PyObject_TypeCheck(pcObj, &(PyList_Type)) ||