From 04cf9c870bb04f0660587d3cf57faf992fdca56f Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Wed, 3 Apr 2024 21:24:03 +1100 Subject: [PATCH] Fix bug when linking in models with no chunks --- src/blenderbim/blenderbim/bim/module/project/operator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/project/operator.py b/src/blenderbim/blenderbim/bim/module/project/operator.py index b3caa863cf..8d58b4bb39 100644 --- a/src/blenderbim/blenderbim/bim/module/project/operator.py +++ b/src/blenderbim/blenderbim/bim/module/project/operator.py @@ -1294,6 +1294,8 @@ class LoadLinkedProject(bpy.types.Operator): 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)