mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix bug on Windows where sometimes, the body representation wouldn't be loaded by default. See #1290.
This commit is contained in:
@@ -699,7 +699,11 @@ class IfcImporter:
|
||||
checkpoint = time.time()
|
||||
shape = iterator.get()
|
||||
if shape:
|
||||
self.create_product(self.file.by_id(shape.guid), shape)
|
||||
if shape.context != "Body" and shape.guid in IfcStore.guid_map:
|
||||
# We only load a single context, and we prioritise the Body context. See #1290.
|
||||
pass
|
||||
else:
|
||||
self.create_product(self.file.by_id(shape.guid), shape)
|
||||
if not iterator.next():
|
||||
break
|
||||
print("Done creating geometry")
|
||||
|
||||
Reference in New Issue
Block a user