diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-02-01 17:24:12 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-02-01 17:27:09 +0300 |
commit | 812d1c1ec3f3fa0b20e52759ea989f036345228b (patch) | |
tree | 9bced9d0da3e141e16fd6a5729688e5f1a202484 /mesh_f2.py | |
parent | a292e6e25d23f00959ee3ab2050e11dc0a9febbb (diff) |
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
Diffstat (limited to 'mesh_f2.py')
-rw-r--r-- | mesh_f2.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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') |