Toponaming: refactor getExportElementName to separate method

This commit is contained in:
bgbsww
2024-07-18 09:25:54 -04:00
parent 52294ce8c1
commit 16b8d99d62
3 changed files with 19 additions and 10 deletions

View File

@@ -59,10 +59,7 @@ void ExternalGeometryExtension::restoreAttributes(Base::XMLReader& reader)
void ExternalGeometryExtension::saveAttributes(Base::Writer& writer) const
{
Part::GeometryPersistenceExtension::saveAttributes(writer);
// For compatibility with upstream FreeCAD, always save 'Ref' and 'Flags'.
// if (Ref.size())
writer.Stream() << "\" Ref=\"" << Base::Persistence::encodeAttribute(Ref);
// if (Flags.any())
writer.Stream() << "\" Flags=\"" << Flags.to_ulong();
if (RefIndex >= 0) {
writer.Stream() << "\" RefIndex=\"" << RefIndex;