diff options
author | nutti <nutti.metro@gmail.com> | 2022-04-22 10:21:10 +0300 |
---|---|---|
committer | nutti <nutti.metro@gmail.com> | 2022-04-22 10:21:10 +0300 |
commit | 2cbb9e2b960ac343a6f5796e20d0efb443bd4a67 (patch) | |
tree | f851332fd5c89fe91a2ac157ee531be8fab42742 /magic_uv/op/smooth_uv.py | |
parent | f6ad5b917e437e3c0b2092b64a82e6cfc56ba1bc (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/smooth_uv.py')
-rw-r--r-- | magic_uv/op/smooth_uv.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/magic_uv/op/smooth_uv.py b/magic_uv/op/smooth_uv.py index 020bc78f..b7c06c7c 100644 --- a/magic_uv/op/smooth_uv.py +++ b/magic_uv/op/smooth_uv.py @@ -4,8 +4,8 @@ __author__ = "imdjs, 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 BoolProperty, FloatProperty @@ -18,6 +18,12 @@ from ..utils import compatibility as compat def _is_valid_context(context): + # 'IMAGE_EDITOR' and 'VIEW_3D' space is allowed to execute. + # If 'View_3D' space is not allowed, you can't find option in Tool-Shelf + # after the execution + if not common.is_valid_space(context, ['IMAGE_EDITOR', 'VIEW_3D']): + return False + objs = common.get_uv_editable_objects(context) if not objs: return False @@ -26,12 +32,6 @@ def _is_valid_context(context): if context.object.mode != 'EDIT': return False - # 'IMAGE_EDITOR' and 'VIEW_3D' space is allowed to execute. - # If 'View_3D' space is not allowed, you can't find option in Tool-Shelf - # after the execution - if not common.is_valid_space(context, ['IMAGE_EDITOR', 'VIEW_3D']): - return False - return True |