Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornutti <nutti.metro@gmail.com>2022-04-22 10:21:10 +0300
committernutti <nutti.metro@gmail.com>2022-04-22 10:21:10 +0300
commit2cbb9e2b960ac343a6f5796e20d0efb443bd4a67 (patch)
treef851332fd5c89fe91a2ac157ee531be8fab42742 /magic_uv/op/preserve_uv_aspect.py
parentf6ad5b917e437e3c0b2092b64a82e6cfc56ba1bc (diff)
Magic UV: Release v6.6
Added Features * Copy/Paste UV Island Updated Features * Pack UV * Add options "Accurate Island Copy", "Stride", "Apply Pack UV" Other Updates * Add 'develop' branch to the update target of updater * Make documents official * Fix bugs
Diffstat (limited to 'magic_uv/op/preserve_uv_aspect.py')
-rw-r--r--magic_uv/op/preserve_uv_aspect.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/magic_uv/op/preserve_uv_aspect.py b/magic_uv/op/preserve_uv_aspect.py
index 9d3cbdde..32e0103f 100644
--- a/magic_uv/op/preserve_uv_aspect.py
+++ b/magic_uv/op/preserve_uv_aspect.py
@@ -4,8 +4,8 @@
__author__ = "Nutti <nutti.metro@gmail.com>"
__status__ = "production"
-__version__ = "6.5"
-__date__ = "6 Mar 2021"
+__version__ = "6.6"
+__date__ = "22 Apr 2022"
import bpy
from bpy.props import StringProperty, EnumProperty, BoolProperty
@@ -19,6 +19,10 @@ from ..utils import compatibility as compat
def _is_valid_context(context):
+ # only 'VIEW_3D' space is allowed to execute
+ if not common.is_valid_space(context, ['VIEW_3D']):
+ return False
+
objs = common.get_uv_editable_objects(context)
if not objs:
return False
@@ -27,10 +31,6 @@ def _is_valid_context(context):
if context.object.mode != 'EDIT':
return False
- # only 'VIEW_3D' space is allowed to execute
- if not common.is_valid_space(context, ['VIEW_3D']):
- return False
-
return True