Sketcher: fix failure to notify solver issues, like redundancies, when using setUpSketch in SketchObject

This commit is contained in:
Abdullah Tahiri
2018-04-27 20:09:55 +02:00
committed by wmayer
parent d2558643f3
commit 97effe4017

View File

@@ -475,8 +475,19 @@ int SketchObject::toggleVirtualSpace(int ConstrId)
int SketchObject::setUpSketch()
{
return solvedSketch.setUpSketch(getCompleteGeometry(), Constraints.getValues(),
getExternalGeometryCount());
lastDoF = solvedSketch.setUpSketch(getCompleteGeometry(), Constraints.getValues(),
getExternalGeometryCount());
lastHasConflict = solvedSketch.hasConflicts();
lastHasRedundancies = solvedSketch.hasRedundancies();
lastConflicting=solvedSketch.getConflicting();
lastRedundant=solvedSketch.getRedundant();
if(lastHasRedundancies || lastDoF < 0 || lastHasConflict)
Constraints.touch();
return lastDoF;
}
int SketchObject::movePoint(int GeoId, PointPos PosId, const Base::Vector3d& toPoint, bool relative, bool updateGeoBeforeMoving)