diff options
Diffstat (limited to 'release/scripts/templates/operator_uv.py')
-rw-r--r-- | release/scripts/templates/operator_uv.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/templates/operator_uv.py b/release/scripts/templates/operator_uv.py index e0cf8dd5db4..73392466aa7 100644 --- a/release/scripts/templates/operator_uv.py +++ b/release/scripts/templates/operator_uv.py @@ -1,5 +1,6 @@ import bpy + def main(context): obj = context.active_object mesh = obj.data @@ -8,7 +9,6 @@ def main(context): if is_editmode: bpy.ops.object.mode_set(mode='OBJECT', toggle=False) - if not mesh.uv_textures: uvtex = bpy.ops.mesh.uv_texture_add() else: @@ -22,7 +22,6 @@ def main(context): # apply the location of the vertex as a UV uvs[j][:] = mesh.vertices[v_idx].co.xy - if is_editmode: bpy.ops.object.mode_set(mode='EDIT', toggle=False) |