[Bf-extensions-cvs] [40064d56] blender2.7: mesh_f2: quad from edge fails (with Adjust UV option)

Philipp Oeser noreply at git.blender.org
Fri Feb 1 15:40:49 CET 2019

Commit: 40064d566063eb05c6907bd070ec78fdc3d86794
Author: Philipp Oeser
Date:   Fri Feb 1 15:24:12 2019 +0100
Branches: blender2.7

mesh_f2: quad from edge fails (with Adjust UV option)

This only happened when no UV for a loop could be found (no adjacent

Fixes T61019, T60191

(cherry picked from commit 812d1c1ec3f3fa0b20e52759ea989f036345228b)


M	mesh_f2.py


diff --git a/mesh_f2.py b/mesh_f2.py
index 88f503ea..357473d8 100644
--- a/mesh_f2.py
+++ b/mesh_f2.py
@@ -186,7 +186,8 @@ def quad_from_edge(bm, edge_sel, context, event):
                             uv_ori[loop.vert.index] = loop[uv_layer].uv
                 if len(uv_ori) == 4 or len(uv_ori) == 3:
                     for loop in face.loops:
-                        loop[uv_layer].uv = uv_ori[loop.vert.index]
+                        if loop.vert.index in uv_ori:
+                            loop[uv_layer].uv = uv_ori[loop.vert.index]
     # toggle mode, to force correct drawing

More information about the Bf-extensions-cvs mailing list