Minor iterator optimisation to prevent inverse check for associated materials

This commit is contained in:
Dion Moult
2021-08-22 21:11:55 +10:00
committed by Thomas Krijnen
parent afb3d998c8
commit 4d7ff493a8
@@ -604,6 +604,10 @@ namespace IfcGeom {
return false;
}
if (products->size() == 1) {
return true;
}
std::set<const IfcSchema::IfcMaterial*> associated_single_materials;
for (IfcSchema::IfcProduct::list::it it = products->begin(); it != products->end(); ++it) {