[Bf-extensions-cvs] [812d1c1e] master: mesh_f2: quad from edge fails (with Adjust UV option)
Philipp Oeser
noreply at git.blender.org
Fri Feb 1 15:29:48 CET 2019
Commit: 812d1c1ec3f3fa0b20e52759ea989f036345228b
Author: Philipp Oeser
Date: Fri Feb 1 15:24:12 2019 +0100
Branches: master
https://developer.blender.org/rBA812d1c1ec3f3fa0b20e52759ea989f036345228b
mesh_f2: quad from edge fails (with Adjust UV option)
This only happened when no UV for a loop could be found (no adjacent
face)
Fixes T61019, T60191
===================================================================
M mesh_f2.py
===================================================================
diff --git a/mesh_f2.py b/mesh_f2.py
index ac1fc85b..12b0ab65 100644
--- a/mesh_f2.py
+++ b/mesh_f2.py
@@ -160,7 +160,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
bpy.ops.object.mode_set(mode='OBJECT')
More information about the Bf-extensions-cvs
mailing list