Part: change topo naming storage policy

Only save to XML if asked explicitly
This commit is contained in:
Zheng, Lei
2022-09-03 00:36:31 +05:00
committed by Uwe
parent e30f7bf920
commit 418ebb7958
+2 -2
View File
@@ -317,14 +317,14 @@ void PropertyPartShape::Save (Base::Writer &writer) const
}
if(_SaveHasher) {
if(!toXML && writer.getFileVersion()>1)
if(!toXML)
_Shape.Hasher->setPersistenceFileName(getFileName(".Table").c_str());
else
_Shape.Hasher->setPersistenceFileName(0);
_Shape.Hasher->Save(writer);
}
if(version.size()) {
if(!toXML && writer.getFileVersion()>1)
if(!toXML)
_Shape.setPersistenceFileName(getFileName(".Map").c_str());
else
_Shape.setPersistenceFileName(0);