diff options
Diffstat (limited to 'magic_uv/op/copy_paste_uv_object.py')
-rw-r--r-- | magic_uv/op/copy_paste_uv_object.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/magic_uv/op/copy_paste_uv_object.py b/magic_uv/op/copy_paste_uv_object.py index 4e5d500a..af5df07c 100644 --- a/magic_uv/op/copy_paste_uv_object.py +++ b/magic_uv/op/copy_paste_uv_object.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 bmesh import bpy @@ -28,6 +28,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 + # Multiple objects editing mode is not supported in this feature. objs = common.get_uv_editable_objects(context) if len(objs) != 1: @@ -37,10 +41,6 @@ def _is_valid_context(context): if context.object.mode != 'OBJECT': return False - # only 'VIEW_3D' space is allowed to execute - if not common.is_valid_space(context, ['VIEW_3D']): - return False - return True |