mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix bug where some objects inside spaces won't import
This commit is contained in:
@@ -560,7 +560,10 @@ class IfcImporter():
|
||||
if hasattr(element, 'ContainedInStructure') \
|
||||
and element.ContainedInStructure \
|
||||
and element.ContainedInStructure[0].RelatingStructure:
|
||||
relating_structure_global_id = element.ContainedInStructure[0].RelatingStructure.GlobalId
|
||||
container = element.ContainedInStructure[0].RelatingStructure
|
||||
if container.is_a('IfcSpace'):
|
||||
return self.place_object_in_spatial_tree(container, obj)
|
||||
relating_structure_global_id = container.GlobalId
|
||||
if relating_structure_global_id in self.spatial_structure_elements:
|
||||
self.spatial_structure_elements[relating_structure_global_id]['blender'].objects.link(obj)
|
||||
elif hasattr(element, 'Decomposes') \
|
||||
|
||||
Reference in New Issue
Block a user