Part: re-enable topo naming version checking
This commit is contained in:
@@ -383,17 +383,14 @@ void PropertyPartShape::Restore(Base::XMLReader &reader)
|
||||
if(owner && owner->getDocument()->testStatus(App::Document::PartialDoc))
|
||||
_Shape.Restore(reader);
|
||||
else if(_Ver == "?" || _Ver.empty()) {
|
||||
#if 0
|
||||
// This indicate the shape is saved by legacy version without
|
||||
// element map info.
|
||||
if(owner) {
|
||||
// This will ask user for recompute after import
|
||||
owner->getDocument()->addRecomputeObject(owner);
|
||||
}
|
||||
#endif
|
||||
}else{
|
||||
_Shape.Restore(reader);
|
||||
#if 0
|
||||
if (owner ? owner->checkElementMapVersion(this, _Ver.c_str())
|
||||
: _Shape.checkElementMapVersion(_Ver.c_str())) {
|
||||
auto ver = owner?owner->getElementMapVersion(this):_Shape.getElementMapVersion();
|
||||
@@ -411,15 +408,12 @@ void PropertyPartShape::Restore(Base::XMLReader &reader)
|
||||
owner->getDocument()->addRecomputeObject(owner);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
} else if(owner && !owner->getDocument()->testStatus(App::Document::PartialDoc)) {
|
||||
#if 0
|
||||
if(App::DocumentParams::getWarnRecomputeOnRestore()) {
|
||||
FC_WARN("Pending recompute for generating element map: " << owner->getFullName());
|
||||
owner->getDocument()->addRecomputeObject(owner);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!sh.IsNull() || !_Shape.isNull()) {
|
||||
|
||||
Reference in New Issue
Block a user