Commit suggestion in #7276

This commit is contained in:
Thomas Krijnen
2025-10-22 14:37:10 +02:00
parent 200c0bf773
commit 9e2c7e653f
+1 -1
View File
@@ -373,7 +373,7 @@ const IfcUtil::IfcBaseEntity* mapping::get_single_material_association(const Ifc
}
#endif
#ifdef SCHEMA_HAS_IfcMaterialConstituent
#ifdef SCHEMA_HAS_IfcMaterialConstituentSet
if (associated_material->as<IfcSchema::IfcMaterialConstituentSet>()) {
IfcSchema::IfcMaterialConstituentSet* constituentset = associated_material->as<IfcSchema::IfcMaterialConstituentSet>();
if (settings_.get<settings::LayersetFirst>().value ? constituentset->MaterialConstituents()->get()->size() >= 1 : constituentset->MaterialConstituents()->get()->size() == 1) {