mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Fix #128. XML serializer. HasPropertySets is an optional attribute.
This commit is contained in:
@@ -299,11 +299,13 @@ void XmlSerializer::finalize() {
|
|||||||
ptree& node = descend(type_object, types);
|
ptree& node = descend(type_object, types);
|
||||||
// ptree& node = format_entity_instance(type_object, types);
|
// ptree& node = format_entity_instance(type_object, types);
|
||||||
|
|
||||||
IfcPropertySetDefinition::list::ptr property_sets = type_object->HasPropertySets();
|
if (type_object->hasHasPropertySets()) {
|
||||||
for (IfcPropertySetDefinition::list::it jt = property_sets->begin(); jt != property_sets->end(); ++jt) {
|
IfcPropertySetDefinition::list::ptr property_sets = type_object->HasPropertySets();
|
||||||
IfcPropertySetDefinition* pset = *jt;
|
for (IfcPropertySetDefinition::list::it jt = property_sets->begin(); jt != property_sets->end(); ++jt) {
|
||||||
if (pset->is(Type::IfcPropertySet)) {
|
IfcPropertySetDefinition* pset = *jt;
|
||||||
format_entity_instance(pset, node, true);
|
if (pset->is(Type::IfcPropertySet)) {
|
||||||
|
format_entity_instance(pset, node, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user