create shape of sketch on project load in case it has been saved without a recompute beforehand

This commit is contained in:
wmayer
2017-09-12 15:55:35 +02:00
parent 612fbd4873
commit be6b8dcd40

View File

@@ -5722,6 +5722,12 @@ void SketchObject::onDocumentRestored()
validateExternalLinks();
rebuildExternalGeometry();
Constraints.acceptGeometry(getCompleteGeometry());
// this may happen when saving a sketch directly in edit mode
// but never performed a recompute before
if (Shape.getValue().IsNull() && hasConflicts() == 0) {
if (this->solve(true) == 0)
Shape.setValue(solvedSketch.toShape());
}
}
catch (...) {
}