Core: restoreContent not restoring expressions (#21152)

This commit is contained in:
PaddleStroke
2025-05-06 19:02:35 +02:00
committed by GitHub
parent 39dcd21233
commit 90190f8d13
4 changed files with 24 additions and 1 deletions

View File

@@ -10368,7 +10368,7 @@ bool SketchObject::getBlockedState(const Constraint* cstr, bool& blockedstate) c
void SketchObject::onDocumentRestored()
{
try {
restoreFinished();
onSketchRestore();
Part::Part2DObject::onDocumentRestored();
}
catch (...) {
@@ -10376,6 +10376,12 @@ void SketchObject::onDocumentRestored()
}
void SketchObject::restoreFinished()
{
App::DocumentObject::restoreFinished();
onSketchRestore();
}
void SketchObject::onSketchRestore()
{
try {
migrateSketch();