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:
Diffstat (limited to 'magic_uv/op/texture_lock.py')
-rw-r--r--magic_uv/op/texture_lock.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/magic_uv/op/texture_lock.py b/magic_uv/op/texture_lock.py
index f54c9453..94d91e57 100644
--- a/magic_uv/op/texture_lock.py
+++ b/magic_uv/op/texture_lock.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 math
from math import atan2, cos, sqrt, sin, fabs
@@ -172,6 +172,10 @@ def _calc_tri_vert(v0, v1, angle0, angle1):
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
@@ -180,10 +184,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