diff options
Diffstat (limited to 'magic_uv/op/texture_projection.py')
-rw-r--r-- | magic_uv/op/texture_projection.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/magic_uv/op/texture_projection.py b/magic_uv/op/texture_projection.py index 912447c3..1288e9b7 100644 --- a/magic_uv/op/texture_projection.py +++ b/magic_uv/op/texture_projection.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" from collections import namedtuple from math import sin, cos @@ -139,6 +139,10 @@ def _create_affine_matrix(identity, scale, rotate, translate): 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 @@ -147,10 +151,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 |