mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
Fix bug when linking in models with no chunks
This commit is contained in:
@@ -1294,6 +1294,8 @@ class LoadLinkedProject(bpy.types.Operator):
|
|||||||
if len(shape.geometry.faces) > 1000 and self.is_local(shape): # 333 tris
|
if len(shape.geometry.faces) > 1000 and self.is_local(shape): # 333 tris
|
||||||
self.process_occurrence(shape)
|
self.process_occurrence(shape)
|
||||||
if not iterator.next():
|
if not iterator.next():
|
||||||
|
if not chunked_verts:
|
||||||
|
break
|
||||||
mats = np.concatenate(chunked_materials)
|
mats = np.concatenate(chunked_materials)
|
||||||
midx = np.concatenate(chunked_material_ids)
|
midx = np.concatenate(chunked_material_ids)
|
||||||
mats, mapping = np.unique(mats, axis=0, return_inverse=True)
|
mats, mapping = np.unique(mats, axis=0, return_inverse=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user