mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36: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()
|
checkpoint = time.time()
|
||||||
shape = iterator.get()
|
shape = iterator.get()
|
||||||
if shape:
|
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():
|
if not iterator.next():
|
||||||
break
|
break
|
||||||
print("Done creating geometry")
|
print("Done creating geometry")
|
||||||
|
|||||||
Reference in New Issue
Block a user