mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
mapping binding - never overwrite already set item->instance
1) this way code should be more straightforward 2) this allows us not to reimplement mapping.get_surface_style logic in IfcGeomWrapper as it will be already handled in map_impl(const IfcSchema::IfcStyledItem* inst) and the resulting item->instance is not overridden by IfcStyledItem.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
try { \
|
||||
item = map_impl(inst->as<IfcSchema::T>()); \
|
||||
if (item != nullptr) { \
|
||||
if (!(item->instance && inst->as<IfcSchema::IfcMaterial>())) { \
|
||||
if (item->instance == nullptr) { \
|
||||
item->instance = inst; \
|
||||
} \
|
||||
try { \
|
||||
|
||||
Reference in New Issue
Block a user