diff options
Diffstat (limited to 'magic_uv/op/uv_inspection.py')
-rw-r--r-- | magic_uv/op/uv_inspection.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/magic_uv/op/uv_inspection.py b/magic_uv/op/uv_inspection.py index e974221e..cfbdbacf 100644 --- a/magic_uv/op/uv_inspection.py +++ b/magic_uv/op/uv_inspection.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 random from math import fabs @@ -26,6 +26,12 @@ else: 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 @@ -34,12 +40,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 @@ -156,8 +156,8 @@ class _Properties: scene.muv_uv_inspection_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 ) |