mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +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 { \
|
try { \
|
||||||
item = map_impl(inst->as<IfcSchema::T>()); \
|
item = map_impl(inst->as<IfcSchema::T>()); \
|
||||||
if (item != nullptr) { \
|
if (item != nullptr) { \
|
||||||
item->instance = inst; \
|
if (!(item->instance && inst->as<IfcSchema::IfcMaterial>())) { \
|
||||||
|
item->instance = inst; \
|
||||||
|
} \
|
||||||
try { \
|
try { \
|
||||||
if (inst->as<IfcSchema::IfcRepresentationItem>() && !inst->as<IfcSchema::IfcStyledItem>() && \
|
if (inst->as<IfcSchema::IfcRepresentationItem>() && !inst->as<IfcSchema::IfcStyledItem>() && \
|
||||||
/* @todo */ \
|
/* @todo */ \
|
||||||
|
|||||||
Reference in New Issue
Block a user