Toponaming: refactor getExportElementName to separate method
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user