mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
Fix instance_id in geometry.materials returning material id instead of style id
This commit is contained in:
@@ -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 */ \
|
||||
|
||||
Reference in New Issue
Block a user