Sketcher: Augment malformed constraint messages

===============================================

Enable a user recomputing an object/document to identify which sketch has the malformed constraints.
This commit is contained in:
Abdullah Tahiri
2020-07-02 17:46:16 +02:00
parent 1fa1d753b0
commit 4ed35140c0
3 changed files with 83 additions and 71 deletions

View File

@@ -286,6 +286,10 @@ int SketchObject::solve(bool updateGeoAfterSolving/*=true*/)
}
}
if(solvedSketch.hasMalformedConstraints()) {
Base::Console().Error("Sketch %s has malformed constraints!\n",this->getNameInDocument());
}
lastSolveTime=solvedSketch.SolveTime;
if (err == 0 && updateGeoAfterSolving) {