Skip to content

Commit

Permalink
Fix bug when linking in models with no chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Moult committed Apr 3, 2024
1 parent bf9bddc commit 04cf9c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blenderbim/blenderbim/bim/module/project/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,8 @@ def execute(self, context):
if len(shape.geometry.faces) > 1000 and self.is_local(shape): # 333 tris
self.process_occurrence(shape)
if not iterator.next():
if not chunked_verts:
break
mats = np.concatenate(chunked_materials)
midx = np.concatenate(chunked_material_ids)
mats, mapping = np.unique(mats, axis=0, return_inverse=True)
Expand Down

0 comments on commit 04cf9c8

Please sign in to comment.