mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
IfcMaterialList in XML output
This commit is contained in:
@@ -423,6 +423,12 @@ void XmlSerializer::finalize() {
|
||||
}
|
||||
format_entity_instance(*jt, subnode, node);
|
||||
}
|
||||
} else if (mat->as<IfcMaterialList>()) {
|
||||
IfcMaterial::list::ptr mats = mat->as<IfcMaterialList>()->Materials();
|
||||
for (IfcMaterial::list::it jt = mats->begin(); jt != mats->end(); ++jt) {
|
||||
ptree subnode;
|
||||
format_entity_instance(*jt, subnode, node);
|
||||
}
|
||||
}
|
||||
format_entity_instance((IfcUtil::IfcBaseEntity*) mat, node, materials);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user