Fix T82908: LoopTools error: ValueError: faces.new(...): found the same (BMVert) used multiple time

This commit is contained in:
Vladimir Spivak 2020-12-20 02:45:41 +02:00
parent 2719e7b337
commit 3f35112dcf
Notes: blender-bot 2023-02-14 18:45:40 +01:00
Referenced by issue #82908, LoopTools error: ValueError: faces.new(...): found the same (BMVert) used multiple time
1 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,7 @@
bl_info = {
"name": "LoopTools",
"author": "Bart Crouch, Vladimir Spivak (cwolf3d)",
"version": (4, 7, 4),
"version": (4, 7, 5),
"blender": (2, 80, 0),
"location": "View3D > Sidebar > Edit Tab / Edit Mode Context Menu",
"warning": "",
@ -1504,7 +1504,11 @@ def bridge_create_faces(object, bm, faces, twist):
new_faces = []
for i in range(len(faces)):
new_faces.append(bm.faces.new([bm.verts[v] for v in faces[i]]))
try:
new_faces.append(bm.faces.new([bm.verts[v] for v in faces[i]]))
except:
# face already exists
pass
bm.normal_update()
object.data.update(calc_edges=True) # calc_edges prevents memory-corruption