mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Commit suggestion in #7276
This commit is contained in:
@@ -373,7 +373,7 @@ const IfcUtil::IfcBaseEntity* mapping::get_single_material_association(const Ifc
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SCHEMA_HAS_IfcMaterialConstituent
|
#ifdef SCHEMA_HAS_IfcMaterialConstituentSet
|
||||||
if (associated_material->as<IfcSchema::IfcMaterialConstituentSet>()) {
|
if (associated_material->as<IfcSchema::IfcMaterialConstituentSet>()) {
|
||||||
IfcSchema::IfcMaterialConstituentSet* constituentset = 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) {
|
if (settings_.get<settings::LayersetFirst>().value ? constituentset->MaterialConstituents()->get()->size() >= 1 : constituentset->MaterialConstituents()->get()->size() == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user