This commit is contained in:
Thomas Krijnen
2021-08-08 21:16:30 +02:00
parent 83a8745959
commit 21e064acaf
+3 -2
View File
@@ -668,7 +668,7 @@ void SvgSerializer::write(const IfcGeom::BRepElement<real_t>* brep_obj) {
// @todo is it correct to call nameElement() here with a single storey (what if this element spans multiple?)
geometry_data data{ compound_local, dash_arrays, trsf, brep_obj->product(), storey, elev, brep_obj->name(), nameElement(storey, brep_obj) };
if (auto_section_ || auto_elevation_ || section_ref_ || elevation_ref_) {
if (auto_section_ || auto_elevation_ || section_ref_ || elevation_ref_ || elevation_ref_guid_) {
element_buffer_.push_back(data);
}
@@ -1972,6 +1972,8 @@ void SvgSerializer::finalize() {
}
}
previous = it->first;
if (it->second.second.empty()) {
continue;
}
@@ -1982,7 +1984,6 @@ void SvgSerializer::finalize() {
svg_file << jt->str();
}
svg_file << " </g>\n";
previous = it->first;
}
if (previous) {