Add override flag for recomputes; set it in relevant tests with old files.

This commit is contained in:
bgbsww
2024-09-14 21:45:52 -04:00
committed by Yorik van Havre
parent a54f03f666
commit 0f53f2195d
14 changed files with 44 additions and 11 deletions

View File

@@ -389,10 +389,10 @@ void PropertyPartShape::Restore(Base::XMLReader &reader)
}
}
} else if(owner && !owner->getDocument()->testStatus(App::Document::PartialDoc)) {
// Toponaming 09/2024: Original code has a whole infrastructure of document parameters we aren't bring in:
// Toponaming 09/2024: Original code has an infrastructure for document parameters we aren't bringing in:
// if(App::DocumentParams::getWarnRecomputeOnRestore()) {
// However, this warning appears on all files without element maps, and is now superceded by a user dialog
// after loading that is triggered by any addRecomputeObject()
// However, this warning appeared on all files without element maps, and is now superseded by a user dialog
// after loading that is triggered by any call to addRecomputeObject()
// FC_WARN("Pending recompute for generating element map: " << owner->getFullName());
owner->getDocument()->addRecomputeObject(owner);
}