mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Minor iterator optimisation to prevent inverse check for associated materials
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user