diff --git a/bmesh_operations/mesh_edit.py b/bmesh_operations/mesh_edit.py index 49d4a6d..f8a0275 100644 --- a/bmesh_operations/mesh_edit.py +++ b/bmesh_operations/mesh_edit.py @@ -24,7 +24,10 @@ def bmesh_join(list_of_bmeshes, list_of_matrices, normal_update=False): if bm_to_add.faces: for face in bm_to_add.faces: - add_face(tuple(bm.verts[i.index + offset] for i in face.verts)) + try: + add_face(tuple(bm.verts[i.index + offset] for i in face.verts)) + except: + pass bm.faces.index_update() if bm_to_add.edges: diff --git a/bmesh_operations/mesh_split_by_island.py b/bmesh_operations/mesh_split_by_island.py index b11c918..9e3bb02 100644 --- a/bmesh_operations/mesh_split_by_island.py +++ b/bmesh_operations/mesh_split_by_island.py @@ -1,9 +1,11 @@ import bpy import bmesh +import sys # Simple - get all linked faces def get_linked_faces(f): + sys.setrecursionlimit(10**6) if f.tag: # If the face is already tagged, return empty list return []