diff options
Diffstat (limited to 'release/scripts/templates/operator_uv.py')
-rw-r--r-- | release/scripts/templates/operator_uv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/templates/operator_uv.py b/release/scripts/templates/operator_uv.py index 46ce15f090d..a18aaf358c8 100644 --- a/release/scripts/templates/operator_uv.py +++ b/release/scripts/templates/operator_uv.py @@ -15,10 +15,10 @@ def main(context): # adjust UVs for i, uv in enumerate(mesh.active_uv_texture.data): uvs = uv.uv1, uv.uv2, uv.uv3, uv.uv4 - for j, v_idx in enumerate(mesh.faces[i].verts): + for j, v_idx in enumerate(mesh.faces[i].vertices): if uv.select_uv[j]: # apply the location of the vertex as a UV - uvs[j][:] = mesh.verts[v_idx].co.xy + uvs[j][:] = mesh.vertices[v_idx].co.xy if is_editmode: |