diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-24 21:37:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-24 21:37:54 +0300 |
commit | 315879db111564dc3e4377ca72868557b3587d83 (patch) | |
tree | 2823335f5477b42e9ecdf6b4055a32701882ba3e /release/scripts/templates/operator_uv.py | |
parent | 2c70b1785c02f8f2c3ac8aeae279a9b8a484d141 (diff) |
bugfix [#24884] Loading any preset leads to crash
caused by own recent commit. update uv operator template too.
Diffstat (limited to 'release/scripts/templates/operator_uv.py')
-rw-r--r-- | release/scripts/templates/operator_uv.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/templates/operator_uv.py b/release/scripts/templates/operator_uv.py index 305496e31ce..e0cf8dd5db4 100644 --- a/release/scripts/templates/operator_uv.py +++ b/release/scripts/templates/operator_uv.py @@ -11,6 +11,8 @@ def main(context): if not mesh.uv_textures: uvtex = bpy.ops.mesh.uv_texture_add() + else: + uvtex = mesh.uv_textures.active # adjust UVs for i, uv in enumerate(uvtex.data): |