Sketcher: Wrong DoF reported - Fixes #3503

This commit is contained in:
Abdullah Tahiri
2018-06-08 23:47:06 +02:00
committed by wmayer
parent 8472bcba15
commit 2c89860a38

View File

@@ -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)) ||