Fix instance_id in geometry.materials returning material id instead of style id

This commit is contained in:
Andrej730
2024-06-18 13:50:02 +05:00
committed by Andrej
parent f921b65953
commit 882e0a4ae9
+3 -1
View File
@@ -8,7 +8,9 @@
try { \
item = map_impl(inst->as<IfcSchema::T>()); \
if (item != nullptr) { \
item->instance = inst; \
if (!(item->instance && inst->as<IfcSchema::IfcMaterial>())) { \
item->instance = inst; \
} \
try { \
if (inst->as<IfcSchema::IfcRepresentationItem>() && !inst->as<IfcSchema::IfcStyledItem>() && \
/* @todo */ \