diff --git a/src/Mod/Part/App/PropertyTopoShape.cpp b/src/Mod/Part/App/PropertyTopoShape.cpp index 35ad931031..4b5fb2f413 100644 --- a/src/Mod/Part/App/PropertyTopoShape.cpp +++ b/src/Mod/Part/App/PropertyTopoShape.cpp @@ -298,21 +298,13 @@ void PropertyPartShape::Save (Base::Writer &writer) const writer.Stream() << " ElementMap=\"" << version << '"'; bool binary = writer.getMode("BinaryBrep"); - bool toXML = writer.getFileVersion()>1 && writer.isForceXML()>=(binary?3:2); + bool toXML = writer.isForceXML(); if(!toXML) { writer.Stream() << " file=\"" << writer.addFile(getFileName(binary?".bin":".brp").c_str(), this) << "\"/>\n"; - } else if(binary) { - writer.Stream() << " binary=\"1\">\n"; - TopoShape shape; - shape.setShape(_Shape.getShape()); - shape.exportBinary(writer.beginCharStream()); - writer.endCharStream() << writer.ind() << "\n"; } else { - writer.Stream() << " brep=\"1\">\n"; - _Shape.exportBrep(writer.beginCharStream()<<'\n'); - writer.endCharStream() << '\n' << writer.ind() << "\n"; + writer.Stream() << "/>\n"; } if(_SaveHasher) {