Move code for recompute dialog and disable warning

This commit is contained in:
bgbsww
2024-09-14 13:31:06 -04:00
committed by Yorik van Havre
parent c4d5cc5967
commit 4a04a7eb91
4 changed files with 47 additions and 40 deletions

View File

@@ -389,11 +389,12 @@ 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:
// if(App::DocumentParams::getWarnRecomputeOnRestore()) {
if( true ) {
FC_WARN("Pending recompute for generating element map: " << owner->getFullName());
owner->getDocument()->addRecomputeObject(owner);
}
// 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()
// FC_WARN("Pending recompute for generating element map: " << owner->getFullName());
owner->getDocument()->addRecomputeObject(owner);
}
if (!shape.isNull() || !_Shape.isNull()) {