From 00e4a2415319c8a8fa18d3620e63990ba9464d0f Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 30 Sep 2020 13:53:15 +0200 Subject: [PATCH] only fetch style for some set of kinds --- src/ifcgeom/schema/bind_convert_impl.i | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ifcgeom/schema/bind_convert_impl.i b/src/ifcgeom/schema/bind_convert_impl.i index 3a03bdae6f..0f36ca4370 100644 --- a/src/ifcgeom/schema/bind_convert_impl.i +++ b/src/ifcgeom/schema/bind_convert_impl.i @@ -9,7 +9,10 @@ if (item != nullptr) { \ item->instance = l; \ try { \ - if (l->as() && !l->as()) { \ + if (l->as() && !l->as() && \ + /* @todo */ \ + (item->kind() == taxonomy::SHELL || item->kind() == taxonomy::COLLECTION || item->kind() == taxonomy::EXTRUSION) \ + ) { \ auto style = find_style(l->as()); \ if (style) { \ ((taxonomy::geom_item*)item)->surface_style = (taxonomy::style*) map(style); \