[Bf-extensions-cvs] [3f35112d] master: Fix T82908: LoopTools error: ValueError: faces.new(...): found the same (BMVert) used multiple time

Vladimir Spivakcwolf3d noreply at git.blender.org
Sun Dec 20 01:46:48 CET 2020


Commit: 3f35112dcfcabd002443a7475ae59499e09e4f1e
Author: Vladimir Spivak(cwolf3d)
Date:   Sun Dec 20 02:45:41 2020 +0200
Branches: master
https://developer.blender.org/rBA3f35112dcfcabd002443a7475ae59499e09e4f1e

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

===================================================================

M	mesh_looptools.py

===================================================================

diff --git a/mesh_looptools.py b/mesh_looptools.py
index 1a75b0de..55f08739 100644
--- a/mesh_looptools.py
+++ b/mesh_looptools.py
@@ -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



More information about the Bf-extensions-cvs mailing list