diff options
Diffstat (limited to 'magic_uv/op/select_uv.py')
-rw-r--r-- | magic_uv/op/select_uv.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/magic_uv/op/select_uv.py b/magic_uv/op/select_uv.py index affc41e4..3e1f160c 100644 --- a/magic_uv/op/select_uv.py +++ b/magic_uv/op/select_uv.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 BoolProperty, FloatProperty, EnumProperty @@ -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 @@ -49,8 +49,8 @@ class _Properties: scene.muv_select_uv_same_polygon_threshold = FloatProperty( name="Same Polygon Threshold", description="Threshold to distinguish same polygons", - default=0.000001, - min=0.000001, + default=0.00001, + min=0.00001, max=0.01, step=0.00001 ) @@ -91,8 +91,8 @@ class MUV_OT_SelectUV_SelectOverlapped(bpy.types.Operator): same_polygon_threshold = FloatProperty( name="Same Polygon Threshold", description="Threshold to distinguish same polygons", - default=0.000001, - min=0.000001, + default=0.00001, + min=0.00001, max=0.01, step=0.00001 ) |