Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNBurn <7nburn@gmail.com>2019-01-18 00:48:54 +0300
committerNBurn <7nburn@gmail.com>2019-01-18 00:48:54 +0300
commitaeabdc02a83a976b2f594cd66873c6d2b537e669 (patch)
tree3ac5922be25219ab666aae4b8d04002bce2e70a6 /uv_magic_uv
parentba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (diff)
Update Add-ons class properties to annotations
This should take care of most of the class property conversions to use the new annotation format (colon instead of equals) for assignment. There may still be a few edge cases that were missed.
Diffstat (limited to 'uv_magic_uv')
-rw-r--r--uv_magic_uv/op/align_uv.py40
-rw-r--r--uv_magic_uv/op/align_uv_cursor.py12
-rw-r--r--uv_magic_uv/op/copy_paste_uv.py32
-rw-r--r--uv_magic_uv/op/copy_paste_uv_object.py8
-rw-r--r--uv_magic_uv/op/flip_rotate_uv.py10
-rw-r--r--uv_magic_uv/op/mirror_uv.py8
-rw-r--r--uv_magic_uv/op/move_uv.py2
-rw-r--r--uv_magic_uv/op/pack_uv.py14
-rw-r--r--uv_magic_uv/op/preserve_uv_aspect.py10
-rw-r--r--uv_magic_uv/op/select_uv.py2
-rw-r--r--uv_magic_uv/op/smooth_uv.py14
-rw-r--r--uv_magic_uv/op/texture_lock.py8
-rw-r--r--uv_magic_uv/op/texture_projection.py16
-rw-r--r--uv_magic_uv/op/texture_wrap.py6
-rw-r--r--uv_magic_uv/op/transfer_uv.py10
-rw-r--r--uv_magic_uv/op/unwrap_constraint.py20
-rw-r--r--uv_magic_uv/op/uv_bounding_box.py8
-rw-r--r--uv_magic_uv/op/uv_inspection.py10
-rw-r--r--uv_magic_uv/op/uv_sculpt.py16
-rw-r--r--uv_magic_uv/op/uvw.py24
-rw-r--r--uv_magic_uv/op/world_scale_uv.py42
-rw-r--r--uv_magic_uv/preferences.py32
22 files changed, 172 insertions, 172 deletions
diff --git a/uv_magic_uv/op/align_uv.py b/uv_magic_uv/op/align_uv.py
index 8225858e..5420c33f 100644
--- a/uv_magic_uv/op/align_uv.py
+++ b/uv_magic_uv/op/align_uv.py
@@ -296,41 +296,41 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_align_uv_enabled = BoolProperty(
+ scene.muv_align_uv_enabled: BoolProperty(
name="Align UV Enabled",
description="Align UV is enabled",
default=False
)
- scene.muv_align_uv_transmission = BoolProperty(
+ scene.muv_align_uv_transmission: BoolProperty(
name="Transmission",
description="Align linked UVs",
default=False
)
- scene.muv_align_uv_select = BoolProperty(
+ scene.muv_align_uv_select: BoolProperty(
name="Select",
description="Select UVs which are aligned",
default=False
)
- scene.muv_align_uv_vertical = BoolProperty(
+ scene.muv_align_uv_vertical: BoolProperty(
name="Vert-Infl (Vertical)",
description="Align vertical direction influenced "
"by mesh vertex proportion",
default=False
)
- scene.muv_align_uv_horizontal = BoolProperty(
+ scene.muv_align_uv_horizontal: BoolProperty(
name="Vert-Infl (Horizontal)",
description="Align horizontal direction influenced "
"by mesh vertex proportion",
default=False
)
- scene.muv_align_uv_mesh_infl = FloatProperty(
+ scene.muv_align_uv_mesh_infl: FloatProperty(
name="Mesh Influence",
description="Influence rate of mesh vertex",
min=0.0,
max=1.0,
default=0.0
)
- scene.muv_align_uv_location = EnumProperty(
+ scene.muv_align_uv_location: EnumProperty(
name="Location",
description="Align location",
items=[
@@ -361,12 +361,12 @@ class MUV_OT_AlignUV_Circle(bpy.types.Operator):
bl_description = "Align UV coordinates to Circle"
bl_options = {'REGISTER', 'UNDO'}
- transmission = BoolProperty(
+ transmission: BoolProperty(
name="Transmission",
description="Align linked UVs",
default=False
)
- select = BoolProperty(
+ select: BoolProperty(
name="Select",
description="Select UVs which are aligned",
default=False
@@ -447,29 +447,29 @@ class MUV_OT_AlignUV_Straighten(bpy.types.Operator):
bl_description = "Straighten UV coordinates"
bl_options = {'REGISTER', 'UNDO'}
- transmission = BoolProperty(
+ transmission: BoolProperty(
name="Transmission",
description="Align linked UVs",
default=False
)
- select = BoolProperty(
+ select: BoolProperty(
name="Select",
description="Select UVs which are aligned",
default=False
)
- vertical = BoolProperty(
+ vertical: BoolProperty(
name="Vert-Infl (Vertical)",
description="Align vertical direction influenced "
"by mesh vertex proportion",
default=False
)
- horizontal = BoolProperty(
+ horizontal: BoolProperty(
name="Vert-Infl (Horizontal)",
description="Align horizontal direction influenced "
"by mesh vertex proportion",
default=False
)
- mesh_infl = FloatProperty(
+ mesh_infl: FloatProperty(
name="Mesh Influence",
description="Influence rate of mesh vertex",
min=0.0,
@@ -599,29 +599,29 @@ class MUV_OT_AlignUV_Axis(bpy.types.Operator):
bl_description = "Align UV to XY-axis"
bl_options = {'REGISTER', 'UNDO'}
- transmission = BoolProperty(
+ transmission: BoolProperty(
name="Transmission",
description="Align linked UVs",
default=False
)
- select = BoolProperty(
+ select: BoolProperty(
name="Select",
description="Select UVs which are aligned",
default=False
)
- vertical = BoolProperty(
+ vertical: BoolProperty(
name="Vert-Infl (Vertical)",
description="Align vertical direction influenced "
"by mesh vertex proportion",
default=False
)
- horizontal = BoolProperty(
+ horizontal: BoolProperty(
name="Vert-Infl (Horizontal)",
description="Align horizontal direction influenced "
"by mesh vertex proportion",
default=False
)
- location = EnumProperty(
+ location: EnumProperty(
name="Location",
description="Align location",
items=[
@@ -631,7 +631,7 @@ class MUV_OT_AlignUV_Axis(bpy.types.Operator):
],
default='MIDDLE'
)
- mesh_infl = FloatProperty(
+ mesh_infl: FloatProperty(
name="Mesh Influence",
description="Influence rate of mesh vertex",
min=0.0,
diff --git a/uv_magic_uv/op/align_uv_cursor.py b/uv_magic_uv/op/align_uv_cursor.py
index ab4e93b4..bd92cf81 100644
--- a/uv_magic_uv/op/align_uv_cursor.py
+++ b/uv_magic_uv/op/align_uv_cursor.py
@@ -86,13 +86,13 @@ class _Properties:
cy = bd_size[1] * value[1]
space.cursor_location = Vector((cx, cy))
- scene.muv_align_uv_cursor_enabled = BoolProperty(
+ scene.muv_align_uv_cursor_enabled: BoolProperty(
name="Align UV Cursor Enabled",
description="Align UV Cursor is enabled",
default=False
)
- scene.muv_align_uv_cursor_cursor_loc = FloatVectorProperty(
+ scene.muv_align_uv_cursor_cursor_loc: FloatVectorProperty(
name="UV Cursor Location",
size=2,
precision=4,
@@ -103,7 +103,7 @@ class _Properties:
get=auvc_get_cursor_loc,
set=auvc_set_cursor_loc
)
- scene.muv_align_uv_cursor_align_method = EnumProperty(
+ scene.muv_align_uv_cursor_align_method: EnumProperty(
name="Align Method",
description="Align Method",
default='TEXTURE',
@@ -114,7 +114,7 @@ class _Properties:
]
)
- scene.muv_uv_cursor_location_enabled = BoolProperty(
+ scene.muv_uv_cursor_location_enabled: BoolProperty(
name="UV Cursor Location Enabled",
description="UV Cursor Location is enabled",
default=False
@@ -138,7 +138,7 @@ class MUV_OT_AlignUVCursor(bpy.types.Operator):
bl_description = "Align cursor to the center of UV island"
bl_options = {'REGISTER', 'UNDO'}
- position = EnumProperty(
+ position: EnumProperty(
items=(
('CENTER', "Center", "Align to Center"),
('LEFT_TOP', "Left Top", "Align to Left Top"),
@@ -154,7 +154,7 @@ class MUV_OT_AlignUVCursor(bpy.types.Operator):
description="Align position",
default='CENTER'
)
- base = EnumProperty(
+ base: EnumProperty(
items=(
('TEXTURE', "Texture", "Align based on Texture"),
('UV', "UV", "Align to UV"),
diff --git a/uv_magic_uv/op/copy_paste_uv.py b/uv_magic_uv/op/copy_paste_uv.py
index f5ff883e..11489f8c 100644
--- a/uv_magic_uv/op/copy_paste_uv.py
+++ b/uv_magic_uv/op/copy_paste_uv.py
@@ -280,17 +280,17 @@ class _Properties:
scene.muv_props.copy_paste_uv = Props()
scene.muv_props.copy_paste_uv_selseq = Props()
- scene.muv_copy_paste_uv_enabled = BoolProperty(
+ scene.muv_copy_paste_uv_enabled: BoolProperty(
name="Copy/Paste UV Enabled",
description="Copy/Paste UV is enabled",
default=False
)
- scene.muv_copy_paste_uv_copy_seams = BoolProperty(
+ scene.muv_copy_paste_uv_copy_seams: BoolProperty(
name="Seams",
description="Copy Seams",
default=True
)
- scene.muv_copy_paste_uv_mode = EnumProperty(
+ scene.muv_copy_paste_uv_mode: EnumProperty(
items=[
('DEFAULT', "Default", "Default Mode"),
('SEL_SEQ', "Selection Sequence", "Selection Sequence Mode")
@@ -299,7 +299,7 @@ class _Properties:
description="Copy/Paste UV Mode",
default='DEFAULT'
)
- scene.muv_copy_paste_uv_strategy = EnumProperty(
+ scene.muv_copy_paste_uv_strategy: EnumProperty(
name="Strategy",
description="Paste Strategy",
items=[
@@ -331,7 +331,7 @@ class MUV_OT_CopyPasteUV_CopyUV(bpy.types.Operator):
bl_description = "Copy UV coordinate"
bl_options = {'REGISTER', 'UNDO'}
- uv_map = StringProperty(default="__default", options={'HIDDEN'})
+ uv_map: StringProperty(default="__default", options={'HIDDEN'})
@classmethod
def poll(cls, context):
@@ -408,8 +408,8 @@ class MUV_OT_CopyPasteUV_PasteUV(bpy.types.Operator):
bl_description = "Paste UV coordinate"
bl_options = {'REGISTER', 'UNDO'}
- uv_map = StringProperty(default="__default", options={'HIDDEN'})
- strategy = EnumProperty(
+ uv_map: StringProperty(default="__default", options={'HIDDEN'})
+ strategy: EnumProperty(
name="Strategy",
description="Paste Strategy",
items=[
@@ -418,18 +418,18 @@ class MUV_OT_CopyPasteUV_PasteUV(bpy.types.Operator):
],
default="N_M"
)
- flip_copied_uv = BoolProperty(
+ flip_copied_uv: BoolProperty(
name="Flip Copied UV",
description="Flip Copied UV...",
default=False
)
- rotate_copied_uv = IntProperty(
+ rotate_copied_uv: IntProperty(
default=0,
name="Rotate Copied UV",
min=0,
max=30
)
- copy_seams = BoolProperty(
+ copy_seams: BoolProperty(
name="Seams",
description="Copy Seams",
default=True
@@ -548,7 +548,7 @@ class MUV_OT_CopyPasteUV_SelSeqCopyUV(bpy.types.Operator):
bl_description = "Copy UV data by selection sequence"
bl_options = {'REGISTER', 'UNDO'}
- uv_map = StringProperty(default="__default", options={'HIDDEN'})
+ uv_map: StringProperty(default="__default", options={'HIDDEN'})
@classmethod
def poll(cls, context):
@@ -625,8 +625,8 @@ class MUV_OT_CopyPasteUV_SelSeqPasteUV(bpy.types.Operator):
bl_description = "Paste UV coordinate by selection sequence"
bl_options = {'REGISTER', 'UNDO'}
- uv_map = StringProperty(default="__default", options={'HIDDEN'})
- strategy = EnumProperty(
+ uv_map: StringProperty(default="__default", options={'HIDDEN'})
+ strategy: EnumProperty(
name="Strategy",
description="Paste Strategy",
items=[
@@ -635,18 +635,18 @@ class MUV_OT_CopyPasteUV_SelSeqPasteUV(bpy.types.Operator):
],
default="N_M"
)
- flip_copied_uv = BoolProperty(
+ flip_copied_uv: BoolProperty(
name="Flip Copied UV",
description="Flip Copied UV...",
default=False
)
- rotate_copied_uv = IntProperty(
+ rotate_copied_uv: IntProperty(
default=0,
name="Rotate Copied UV",
min=0,
max=30
)
- copy_seams = BoolProperty(
+ copy_seams: BoolProperty(
name="Seams",
description="Copy Seams",
default=True
diff --git a/uv_magic_uv/op/copy_paste_uv_object.py b/uv_magic_uv/op/copy_paste_uv_object.py
index dc7073b8..691ca42a 100644
--- a/uv_magic_uv/op/copy_paste_uv_object.py
+++ b/uv_magic_uv/op/copy_paste_uv_object.py
@@ -75,7 +75,7 @@ class _Properties:
scene.muv_props.copy_paste_uv_object = Props()
- scene.muv_copy_paste_uv_object_copy_seams = BoolProperty(
+ scene.muv_copy_paste_uv_object_copy_seams: BoolProperty(
name="Seams",
description="Copy Seams",
default=True
@@ -108,7 +108,7 @@ class MUV_OT_CopyPasteUVObject_CopyUV(bpy.types.Operator):
bl_description = "Copy UV coordinate (Among Objects)"
bl_options = {'REGISTER', 'UNDO'}
- uv_map = StringProperty(default="__default", options={'HIDDEN'})
+ uv_map: StringProperty(default="__default", options={'HIDDEN'})
@classmethod
def poll(cls, context):
@@ -186,8 +186,8 @@ class MUV_OT_CopyPasteUVObject_PasteUV(bpy.types.Operator):
bl_description = "Paste UV coordinate (Among Objects)"
bl_options = {'REGISTER', 'UNDO'}
- uv_map = StringProperty(default="__default", options={'HIDDEN'})
- copy_seams = BoolProperty(
+ uv_map: StringProperty(default="__default", options={'HIDDEN'})
+ copy_seams: BoolProperty(
name="Seams",
description="Copy Seams",
default=True
diff --git a/uv_magic_uv/op/flip_rotate_uv.py b/uv_magic_uv/op/flip_rotate_uv.py
index 2ecab254..0ff38145 100644
--- a/uv_magic_uv/op/flip_rotate_uv.py
+++ b/uv_magic_uv/op/flip_rotate_uv.py
@@ -144,12 +144,12 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_flip_rotate_uv_enabled = BoolProperty(
+ scene.muv_flip_rotate_uv_enabled: BoolProperty(
name="Flip/Rotate UV Enabled",
description="Flip/Rotate UV is enabled",
default=False
)
- scene.muv_flip_rotate_uv_seams = BoolProperty(
+ scene.muv_flip_rotate_uv_seams: BoolProperty(
name="Seams",
description="Seams",
default=True
@@ -173,18 +173,18 @@ class MUV_OT_FlipRotate(bpy.types.Operator):
bl_description = "Flip/Rotate UV coordinate"
bl_options = {'REGISTER', 'UNDO'}
- flip = BoolProperty(
+ flip: BoolProperty(
name="Flip UV",
description="Flip UV...",
default=False
)
- rotate = IntProperty(
+ rotate: IntProperty(
default=0,
name="Rotate UV",
min=0,
max=30
)
- seams = BoolProperty(
+ seams: BoolProperty(
name="Seams",
description="Seams",
default=True
diff --git a/uv_magic_uv/op/mirror_uv.py b/uv_magic_uv/op/mirror_uv.py
index b806daea..bd71ee5f 100644
--- a/uv_magic_uv/op/mirror_uv.py
+++ b/uv_magic_uv/op/mirror_uv.py
@@ -107,12 +107,12 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_mirror_uv_enabled = BoolProperty(
+ scene.muv_mirror_uv_enabled: BoolProperty(
name="Mirror UV Enabled",
description="Mirror UV is enabled",
default=False
)
- scene.muv_mirror_uv_axis = EnumProperty(
+ scene.muv_mirror_uv_axis: EnumProperty(
items=[
('X', "X", "Mirror Along X axis"),
('Y', "Y", "Mirror Along Y axis"),
@@ -140,7 +140,7 @@ class MUV_OT_MirrorUV(bpy.types.Operator):
bl_label = "Mirror UV"
bl_options = {'REGISTER', 'UNDO'}
- axis = EnumProperty(
+ axis: EnumProperty(
items=(
('X', "X", "Mirror Along X axis"),
('Y', "Y", "Mirror Along Y axis"),
@@ -150,7 +150,7 @@ class MUV_OT_MirrorUV(bpy.types.Operator):
description="Mirror Axis",
default='X'
)
- error = FloatProperty(
+ error: FloatProperty(
name="Error",
description="Error threshold",
default=0.001,
diff --git a/uv_magic_uv/op/move_uv.py b/uv_magic_uv/op/move_uv.py
index b747892a..7f94edfb 100644
--- a/uv_magic_uv/op/move_uv.py
+++ b/uv_magic_uv/op/move_uv.py
@@ -74,7 +74,7 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_move_uv_enabled = BoolProperty(
+ scene.muv_move_uv_enabled: BoolProperty(
name="Move UV Enabled",
description="Move UV is enabled",
default=False
diff --git a/uv_magic_uv/op/pack_uv.py b/uv_magic_uv/op/pack_uv.py
index 35685221..4c365f8b 100644
--- a/uv_magic_uv/op/pack_uv.py
+++ b/uv_magic_uv/op/pack_uv.py
@@ -147,12 +147,12 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_pack_uv_enabled = BoolProperty(
+ scene.muv_pack_uv_enabled: BoolProperty(
name="Pack UV Enabled",
description="Pack UV is enabled",
default=False
)
- scene.muv_pack_uv_allowable_center_deviation = FloatVectorProperty(
+ scene.muv_pack_uv_allowable_center_deviation: FloatVectorProperty(
name="Allowable Center Deviation",
description="Allowable center deviation to judge same UV island",
min=0.000001,
@@ -160,7 +160,7 @@ class _Properties:
default=(0.001, 0.001),
size=2
)
- scene.muv_pack_uv_allowable_size_deviation = FloatVectorProperty(
+ scene.muv_pack_uv_allowable_size_deviation: FloatVectorProperty(
name="Allowable Size Deviation",
description="Allowable sizse deviation to judge same UV island",
min=0.000001,
@@ -192,17 +192,17 @@ class MUV_OT_PackUV(bpy.types.Operator):
bl_description = "Pack UV (Same UV Islands are integrated)"
bl_options = {'REGISTER', 'UNDO'}
- rotate = BoolProperty(
+ rotate: BoolProperty(
name="Rotate",
description="Rotate option used by default pack UV function",
default=False)
- margin = FloatProperty(
+ margin: FloatProperty(
name="Margin",
description="Margin used by default pack UV function",
min=0,
max=1,
default=0.001)
- allowable_center_deviation = FloatVectorProperty(
+ allowable_center_deviation: FloatVectorProperty(
name="Allowable Center Deviation",
description="Allowable center deviation to judge same UV island",
min=0.000001,
@@ -210,7 +210,7 @@ class MUV_OT_PackUV(bpy.types.Operator):
default=(0.001, 0.001),
size=2
)
- allowable_size_deviation = FloatVectorProperty(
+ allowable_size_deviation: FloatVectorProperty(
name="Allowable Size Deviation",
description="Allowable sizse deviation to judge same UV island",
min=0.000001,
diff --git a/uv_magic_uv/op/preserve_uv_aspect.py b/uv_magic_uv/op/preserve_uv_aspect.py
index a200edac..244deb89 100644
--- a/uv_magic_uv/op/preserve_uv_aspect.py
+++ b/uv_magic_uv/op/preserve_uv_aspect.py
@@ -66,17 +66,17 @@ class _Properties:
items.append(("None", "None", ""))
return items
- scene.muv_preserve_uv_aspect_enabled = BoolProperty(
+ scene.muv_preserve_uv_aspect_enabled: BoolProperty(
name="Preserve UV Aspect Enabled",
description="Preserve UV Aspect is enabled",
default=False
)
- scene.muv_preserve_uv_aspect_tex_image = EnumProperty(
+ scene.muv_preserve_uv_aspect_tex_image: EnumProperty(
name="Image",
description="Texture Image",
items=get_loaded_texture_name
)
- scene.muv_preserve_uv_aspect_origin = EnumProperty(
+ scene.muv_preserve_uv_aspect_origin: EnumProperty(
name="Origin",
description="Aspect Origin",
items=[
@@ -113,8 +113,8 @@ class MUV_OT_PreserveUVAspect(bpy.types.Operator):
bl_description = "Choose Image"
bl_options = {'REGISTER', 'UNDO'}
- dest_img_name = StringProperty(options={'HIDDEN'})
- origin = EnumProperty(
+ dest_img_name: StringProperty(options={'HIDDEN'})
+ origin: EnumProperty(
name="Origin",
description="Aspect Origin",
items=[
diff --git a/uv_magic_uv/op/select_uv.py b/uv_magic_uv/op/select_uv.py
index 4664551e..268843bf 100644
--- a/uv_magic_uv/op/select_uv.py
+++ b/uv_magic_uv/op/select_uv.py
@@ -61,7 +61,7 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_select_uv_enabled = BoolProperty(
+ scene.muv_select_uv_enabled: BoolProperty(
name="Select UV Enabled",
description="Select UV is enabled",
default=False
diff --git a/uv_magic_uv/op/smooth_uv.py b/uv_magic_uv/op/smooth_uv.py
index 83a4a1a5..6b3cd36f 100644
--- a/uv_magic_uv/op/smooth_uv.py
+++ b/uv_magic_uv/op/smooth_uv.py
@@ -62,24 +62,24 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_smooth_uv_enabled = BoolProperty(
+ scene.muv_smooth_uv_enabled: BoolProperty(
name="Smooth UV Enabled",
description="Smooth UV is enabled",
default=False
)
- scene.muv_smooth_uv_transmission = BoolProperty(
+ scene.muv_smooth_uv_transmission: BoolProperty(
name="Transmission",
description="Smooth linked UVs",
default=False
)
- scene.muv_smooth_uv_mesh_infl = FloatProperty(
+ scene.muv_smooth_uv_mesh_infl: FloatProperty(
name="Mesh Influence",
description="Influence rate of mesh vertex",
min=0.0,
max=1.0,
default=0.0
)
- scene.muv_smooth_uv_select = BoolProperty(
+ scene.muv_smooth_uv_select: BoolProperty(
name="Select",
description="Select UVs which are smoothed",
default=False
@@ -102,19 +102,19 @@ class MUV_OT_SmoothUV(bpy.types.Operator):
bl_description = "Smooth UV coordinates"
bl_options = {'REGISTER', 'UNDO'}
- transmission = BoolProperty(
+ transmission: BoolProperty(
name="Transmission",
description="Smooth linked UVs",
default=False
)
- mesh_infl = FloatProperty(
+ mesh_infl: FloatProperty(
name="Mesh Influence",
description="Influence rate of mesh vertex",
min=0.0,
max=1.0,
default=0.0
)
- select = BoolProperty(
+ select: BoolProperty(
name="Select",
description="Select UVs which are smoothed",
default=False
diff --git a/uv_magic_uv/op/texture_lock.py b/uv_magic_uv/op/texture_lock.py
index f43a6fa9..6784cf54 100644
--- a/uv_magic_uv/op/texture_lock.py
+++ b/uv_magic_uv/op/texture_lock.py
@@ -228,12 +228,12 @@ class _Properties:
def update_func(_, __):
bpy.ops.uv.muv_texture_lock_operator_intr('INVOKE_REGION_WIN')
- scene.muv_texture_lock_enabled = BoolProperty(
+ scene.muv_texture_lock_enabled: BoolProperty(
name="Texture Lock Enabled",
description="Texture Lock is enabled",
default=False
)
- scene.muv_texture_lock_lock = BoolProperty(
+ scene.muv_texture_lock_lock: BoolProperty(
name="Texture Lock Locked",
description="Texture Lock is locked",
default=False,
@@ -241,7 +241,7 @@ class _Properties:
set=set_func,
update=update_func
)
- scene.muv_texture_lock_connect = BoolProperty(
+ scene.muv_texture_lock_connect: BoolProperty(
name="Connect UV",
default=True
)
@@ -312,7 +312,7 @@ class MUV_OT_TextureLock_Unlock(bpy.types.Operator):
bl_description = "Unlock Texture"
bl_options = {'REGISTER', 'UNDO'}
- connect = BoolProperty(
+ connect: BoolProperty(
name="Connect UV",
default=True
)
diff --git a/uv_magic_uv/op/texture_projection.py b/uv_magic_uv/op/texture_projection.py
index cb7c25bb..e807caee 100644
--- a/uv_magic_uv/op/texture_projection.py
+++ b/uv_magic_uv/op/texture_projection.py
@@ -158,12 +158,12 @@ class _Properties:
def update_func(_, __):
bpy.ops.uv.muv_texture_projection_operator('INVOKE_REGION_WIN')
- scene.muv_texture_projection_enabled = BoolProperty(
+ scene.muv_texture_projection_enabled: BoolProperty(
name="Texture Projection Enabled",
description="Texture Projection is enabled",
default=False
)
- scene.muv_texture_projection_enable = BoolProperty(
+ scene.muv_texture_projection_enable: BoolProperty(
name="Texture Projection Enabled",
description="Texture Projection is enabled",
default=False,
@@ -171,36 +171,36 @@ class _Properties:
set=set_func,
update=update_func
)
- scene.muv_texture_projection_tex_magnitude = FloatProperty(
+ scene.muv_texture_projection_tex_magnitude: FloatProperty(
name="Magnitude",
description="Texture Magnitude",
default=0.5,
min=0.0,
max=100.0
)
- scene.muv_texture_projection_tex_image = EnumProperty(
+ scene.muv_texture_projection_tex_image: EnumProperty(
name="Image",
description="Texture Image",
items=get_loaded_texture_name
)
- scene.muv_texture_projection_tex_transparency = FloatProperty(
+ scene.muv_texture_projection_tex_transparency: FloatProperty(
name="Transparency",
description="Texture Transparency",
default=0.2,
min=0.0,
max=1.0
)
- scene.muv_texture_projection_adjust_window = BoolProperty(
+ scene.muv_texture_projection_adjust_window: BoolProperty(
name="Adjust Window",
description="Size of renderered texture is fitted to window",
default=True
)
- scene.muv_texture_projection_apply_tex_aspect = BoolProperty(
+ scene.muv_texture_projection_apply_tex_aspect: BoolProperty(
name="Texture Aspect Ratio",
description="Apply Texture Aspect ratio to displayed texture",
default=True
)
- scene.muv_texture_projection_assign_uvmap = BoolProperty(
+ scene.muv_texture_projection_assign_uvmap: BoolProperty(
name="Assign UVMap",
description="Assign UVMap when no UVmaps are available",
default=True
diff --git a/uv_magic_uv/op/texture_wrap.py b/uv_magic_uv/op/texture_wrap.py
index c78ffed9..2b4d5c2b 100644
--- a/uv_magic_uv/op/texture_wrap.py
+++ b/uv_magic_uv/op/texture_wrap.py
@@ -67,17 +67,17 @@ class _Properties:
scene.muv_props.texture_wrap = Props()
- scene.muv_texture_wrap_enabled = BoolProperty(
+ scene.muv_texture_wrap_enabled: BoolProperty(
name="Texture Wrap",
description="Texture Wrap is enabled",
default=False
)
- scene.muv_texture_wrap_set_and_refer = BoolProperty(
+ scene.muv_texture_wrap_set_and_refer: BoolProperty(
name="Set and Refer",
description="Refer and set UV",
default=True
)
- scene.muv_texture_wrap_selseq = BoolProperty(
+ scene.muv_texture_wrap_selseq: BoolProperty(
name="Selection Sequence",
description="Set UV sequentially",
default=False
diff --git a/uv_magic_uv/op/transfer_uv.py b/uv_magic_uv/op/transfer_uv.py
index 25d430b9..079308ea 100644
--- a/uv_magic_uv/op/transfer_uv.py
+++ b/uv_magic_uv/op/transfer_uv.py
@@ -333,17 +333,17 @@ class _Properties:
scene.muv_props.transfer_uv = Props()
- scene.muv_transfer_uv_enabled = BoolProperty(
+ scene.muv_transfer_uv_enabled: BoolProperty(
name="Transfer UV Enabled",
description="Transfer UV is enabled",
default=False
)
- scene.muv_transfer_uv_invert_normals = BoolProperty(
+ scene.muv_transfer_uv_invert_normals: BoolProperty(
name="Invert Normals",
description="Invert Normals",
default=False
)
- scene.muv_transfer_uv_copy_seams = BoolProperty(
+ scene.muv_transfer_uv_copy_seams: BoolProperty(
name="Copy Seams",
description="Copy Seams",
default=True
@@ -409,12 +409,12 @@ class MUV_OT_TransferUV_PasteUV(bpy.types.Operator):
bl_description = "Transfer UV Paste UV (Topological based paste)"
bl_options = {'REGISTER', 'UNDO'}
- invert_normals = BoolProperty(
+ invert_normals: BoolProperty(
name="Invert Normals",
description="Invert Normals",
default=False
)
- copy_seams = BoolProperty(
+ copy_seams: BoolProperty(
name="Copy Seams",
description="Copy Seams",
default=True
diff --git a/uv_magic_uv/op/unwrap_constraint.py b/uv_magic_uv/op/unwrap_constraint.py
index 89727160..62b829cf 100644
--- a/uv_magic_uv/op/unwrap_constraint.py
+++ b/uv_magic_uv/op/unwrap_constraint.py
@@ -62,17 +62,17 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_unwrap_constraint_enabled = BoolProperty(
+ scene.muv_unwrap_constraint_enabled: BoolProperty(
name="Unwrap Constraint Enabled",
description="Unwrap Constraint is enabled",
default=False
)
- scene.muv_unwrap_constraint_u_const = BoolProperty(
+ scene.muv_unwrap_constraint_u_const: BoolProperty(
name="U-Constraint",
description="Keep UV U-axis coordinate",
default=False
)
- scene.muv_unwrap_constraint_v_const = BoolProperty(
+ scene.muv_unwrap_constraint_v_const: BoolProperty(
name="V-Constraint",
description="Keep UV V-axis coordinate",
default=False
@@ -98,7 +98,7 @@ class MUV_OT_UnwrapConstraint(bpy.types.Operator):
bl_options = {'REGISTER', 'UNDO'}
# property for original unwrap
- method = EnumProperty(
+ method: EnumProperty(
name="Method",
description="Unwrapping method",
items=[
@@ -106,20 +106,20 @@ class MUV_OT_UnwrapConstraint(bpy.types.Operator):
('CONFORMAL', 'Conformal', 'Conformal')
],
default='ANGLE_BASED')
- fill_holes = BoolProperty(
+ fill_holes: BoolProperty(
name="Fill Holes",
description="Virtual fill holes in meshes before unwrapping",
default=True)
- correct_aspect = BoolProperty(
+ correct_aspect: BoolProperty(
name="Correct Aspect",
description="Map UVs taking image aspect ratio into account",
default=True)
- use_subsurf_data = BoolProperty(
+ use_subsurf_data: BoolProperty(
name="Use Subsurf Modifier",
description="""Map UVs taking vertex position after subsurf
into account""",
default=False)
- margin = FloatProperty(
+ margin: FloatProperty(
name="Margin",
description="Space between islands",
max=1.0,
@@ -127,12 +127,12 @@ class MUV_OT_UnwrapConstraint(bpy.types.Operator):
default=0.001)
# property for this operation
- u_const = BoolProperty(
+ u_const: BoolProperty(
name="U-Constraint",
description="Keep UV U-axis coordinate",
default=False
)
- v_const = BoolProperty(
+ v_const: BoolProperty(
name="V-Constraint",
description="Keep UV V-axis coordinate",
default=False
diff --git a/uv_magic_uv/op/uv_bounding_box.py b/uv_magic_uv/op/uv_bounding_box.py
index 4839934b..be687b54 100644
--- a/uv_magic_uv/op/uv_bounding_box.py
+++ b/uv_magic_uv/op/uv_bounding_box.py
@@ -90,12 +90,12 @@ class _Properties:
def update_func(_, __):
bpy.ops.uv.muv_uv_bounding_box_operator('INVOKE_REGION_WIN')
- scene.muv_uv_bounding_box_enabled = BoolProperty(
+ scene.muv_uv_bounding_box_enabled: BoolProperty(
name="UV Bounding Box Enabled",
description="UV Bounding Box is enabled",
default=False
)
- scene.muv_uv_bounding_box_show = BoolProperty(
+ scene.muv_uv_bounding_box_show: BoolProperty(
name="UV Bounding Box Showed",
description="UV Bounding Box is showed",
default=False,
@@ -103,12 +103,12 @@ class _Properties:
set=set_func,
update=update_func
)
- scene.muv_uv_bounding_box_uniform_scaling = BoolProperty(
+ scene.muv_uv_bounding_box_uniform_scaling: BoolProperty(
name="Uniform Scaling",
description="Enable Uniform Scaling",
default=False
)
- scene.muv_uv_bounding_box_boundary = EnumProperty(
+ scene.muv_uv_bounding_box_boundary: EnumProperty(
name="Boundary",
description="Boundary",
default='UV_SEL',
diff --git a/uv_magic_uv/op/uv_inspection.py b/uv_magic_uv/op/uv_inspection.py
index 0978158d..b7868978 100644
--- a/uv_magic_uv/op/uv_inspection.py
+++ b/uv_magic_uv/op/uv_inspection.py
@@ -101,12 +101,12 @@ class _Properties:
def update_func(_, __):
bpy.ops.uv.muv_uv_inspection_operator_render('INVOKE_REGION_WIN')
- scene.muv_uv_inspection_enabled = BoolProperty(
+ scene.muv_uv_inspection_enabled: BoolProperty(
name="UV Inspection Enabled",
description="UV Inspection is enabled",
default=False
)
- scene.muv_uv_inspection_show = BoolProperty(
+ scene.muv_uv_inspection_show: BoolProperty(
name="UV Inspection Showed",
description="UV Inspection is showed",
default=False,
@@ -114,17 +114,17 @@ class _Properties:
set=set_func,
update=update_func
)
- scene.muv_uv_inspection_show_overlapped = BoolProperty(
+ scene.muv_uv_inspection_show_overlapped: BoolProperty(
name="Overlapped",
description="Show overlapped UVs",
default=False
)
- scene.muv_uv_inspection_show_flipped = BoolProperty(
+ scene.muv_uv_inspection_show_flipped: BoolProperty(
name="Flipped",
description="Show flipped UVs",
default=False
)
- scene.muv_uv_inspection_show_mode = EnumProperty(
+ scene.muv_uv_inspection_show_mode: EnumProperty(
name="Mode",
description="Show mode",
items=[
diff --git a/uv_magic_uv/op/uv_sculpt.py b/uv_magic_uv/op/uv_sculpt.py
index 7dc1b843..0de6df97 100644
--- a/uv_magic_uv/op/uv_sculpt.py
+++ b/uv_magic_uv/op/uv_sculpt.py
@@ -98,12 +98,12 @@ class _Properties:
def update_func(_, __):
bpy.ops.uv.muv_uv_sculpt_operator('INVOKE_REGION_WIN')
- scene.muv_uv_sculpt_enabled = BoolProperty(
+ scene.muv_uv_sculpt_enabled: BoolProperty(
name="UV Sculpt",
description="UV Sculpt is enabled",
default=False
)
- scene.muv_uv_sculpt_enable = BoolProperty(
+ scene.muv_uv_sculpt_enable: BoolProperty(
name="UV Sculpt Showed",
description="UV Sculpt is enabled",
default=False,
@@ -111,21 +111,21 @@ class _Properties:
set=set_func,
update=update_func
)
- scene.muv_uv_sculpt_radius = IntProperty(
+ scene.muv_uv_sculpt_radius: IntProperty(
name="Radius",
description="Radius of the brush",
min=1,
max=500,
default=30
)
- scene.muv_uv_sculpt_strength = FloatProperty(
+ scene.muv_uv_sculpt_strength: FloatProperty(
name="Strength",
description="How powerful the effect of the brush when applied",
min=0.0,
max=1.0,
default=0.03,
)
- scene.muv_uv_sculpt_tools = EnumProperty(
+ scene.muv_uv_sculpt_tools: EnumProperty(
name="Tools",
description="Select Tools for the UV sculpt brushes",
items=[
@@ -135,17 +135,17 @@ class _Properties:
],
default='GRAB'
)
- scene.muv_uv_sculpt_show_brush = BoolProperty(
+ scene.muv_uv_sculpt_show_brush: BoolProperty(
name="Show Brush",
description="Show Brush",
default=True
)
- scene.muv_uv_sculpt_pinch_invert = BoolProperty(
+ scene.muv_uv_sculpt_pinch_invert: BoolProperty(
name="Invert",
description="Pinch UV to invert direction",
default=False
)
- scene.muv_uv_sculpt_relax_method = EnumProperty(
+ scene.muv_uv_sculpt_relax_method: EnumProperty(
name="Method",
description="Algorithm used for relaxation",
items=[
diff --git a/uv_magic_uv/op/uvw.py b/uv_magic_uv/op/uvw.py
index 9b44100c..28011777 100644
--- a/uv_magic_uv/op/uvw.py
+++ b/uv_magic_uv/op/uvw.py
@@ -175,12 +175,12 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_uvw_enabled = BoolProperty(
+ scene.muv_uvw_enabled: BoolProperty(
name="UVW Enabled",
description="UVW is enabled",
default=False
)
- scene.muv_uvw_assign_uvmap = BoolProperty(
+ scene.muv_uvw_assign_uvmap: BoolProperty(
name="Assign UVMap",
description="Assign UVMap when no UVmaps are available",
default=True
@@ -199,27 +199,27 @@ class MUV_OT_UVW_BoxMap(bpy.types.Operator):
bl_label = "Box Map"
bl_options = {'REGISTER', 'UNDO'}
- size = FloatProperty(
+ size: FloatProperty(
name="Size",
default=1.0,
precision=4
)
- rotation = FloatVectorProperty(
+ rotation: FloatVectorProperty(
name="XYZ Rotation",
size=3,
default=(0.0, 0.0, 0.0)
)
- offset = FloatVectorProperty(
+ offset: FloatVectorProperty(
name="XYZ Offset",
size=3,
default=(0.0, 0.0, 0.0)
)
- tex_aspect = FloatProperty(
+ tex_aspect: FloatProperty(
name="Texture Aspect",
default=1.0,
precision=4
)
- assign_uvmap = BoolProperty(
+ assign_uvmap: BoolProperty(
name="Assign UVMap",
description="Assign UVMap when no UVmaps are available",
default=True
@@ -257,26 +257,26 @@ class MUV_OT_UVW_BestPlanerMap(bpy.types.Operator):
bl_label = "Best Planer Map"
bl_options = {'REGISTER', 'UNDO'}
- size = FloatProperty(
+ size: FloatProperty(
name="Size",
default=1.0,
precision=4
)
- rotation = FloatProperty(
+ rotation: FloatProperty(
name="XY Rotation",
default=0.0
)
- offset = FloatVectorProperty(
+ offset: FloatVectorProperty(
name="XY Offset",
size=2,
default=(0.0, 0.0)
)
- tex_aspect = FloatProperty(
+ tex_aspect: FloatProperty(
name="Texture Aspect",
default=1.0,
precision=4
)
- assign_uvmap = BoolProperty(
+ assign_uvmap: BoolProperty(
name="Assign UVMap",
description="Assign UVMap when no UVmaps are available",
default=True
diff --git a/uv_magic_uv/op/world_scale_uv.py b/uv_magic_uv/op/world_scale_uv.py
index ae46e4a9..f060dad8 100644
--- a/uv_magic_uv/op/world_scale_uv.py
+++ b/uv_magic_uv/op/world_scale_uv.py
@@ -183,36 +183,36 @@ class _Properties:
@classmethod
def init_props(cls, scene):
- scene.muv_world_scale_uv_enabled = BoolProperty(
+ scene.muv_world_scale_uv_enabled: BoolProperty(
name="World Scale UV Enabled",
description="World Scale UV is enabled",
default=False
)
- scene.muv_world_scale_uv_src_mesh_area = FloatProperty(
+ scene.muv_world_scale_uv_src_mesh_area: FloatProperty(
name="Mesh Area",
description="Source Mesh Area",
default=0.0,
min=0.0
)
- scene.muv_world_scale_uv_src_uv_area = FloatProperty(
+ scene.muv_world_scale_uv_src_uv_area: FloatProperty(
name="UV Area",
description="Source UV Area",
default=0.0,
min=0.0
)
- scene.muv_world_scale_uv_src_density = FloatProperty(
+ scene.muv_world_scale_uv_src_density: FloatProperty(
name="Density",
description="Source Texel Density",
default=0.0,
min=0.0
)
- scene.muv_world_scale_uv_tgt_density = FloatProperty(
+ scene.muv_world_scale_uv_tgt_density: FloatProperty(
name="Density",
description="Target Texel Density",
default=0.0,
min=0.0
)
- scene.muv_world_scale_uv_tgt_scaling_factor = FloatProperty(
+ scene.muv_world_scale_uv_tgt_scaling_factor: FloatProperty(
name="Scaling Factor",
default=1.0,
max=1000.0,
@@ -225,7 +225,7 @@ class _Properties:
soft_max=10240,
default=(1024, 1024),
)
- scene.muv_world_scale_uv_mode = EnumProperty(
+ scene.muv_world_scale_uv_mode: EnumProperty(
name="Mode",
description="Density calculation mode",
items=[
@@ -239,7 +239,7 @@ class _Properties:
],
default='MANUAL'
)
- scene.muv_world_scale_uv_origin = EnumProperty(
+ scene.muv_world_scale_uv_origin: EnumProperty(
name="Origin",
description="Aspect Origin",
items=[
@@ -319,7 +319,7 @@ class MUV_OT_WorldScaleUV_ApplyManual(bpy.types.Operator):
bl_description = "Apply scaled UV based on user specification"
bl_options = {'REGISTER', 'UNDO'}
- tgt_density = FloatProperty(
+ tgt_density: FloatProperty(
name="Density",
description="Target Texel Density",
default=1.0,
@@ -332,7 +332,7 @@ class MUV_OT_WorldScaleUV_ApplyManual(bpy.types.Operator):
soft_max=10240,
default=(1024, 1024),
)
- origin = EnumProperty(
+ origin: EnumProperty(
name="Origin",
description="Aspect Origin",
items=[
@@ -349,7 +349,7 @@ class MUV_OT_WorldScaleUV_ApplyManual(bpy.types.Operator):
],
default='CENTER'
)
- show_dialog = BoolProperty(
+ show_dialog: BoolProperty(
name="Show Diaglog Menu",
description="Show dialog menu if true",
default=True,
@@ -417,13 +417,13 @@ class MUV_OT_WorldScaleUV_ApplyScalingDensity(bpy.types.Operator):
bl_description = "Apply scaled UV with scaling density"
bl_options = {'REGISTER', 'UNDO'}
- tgt_scaling_factor = FloatProperty(
+ tgt_scaling_factor: FloatProperty(
name="Scaling Factor",
default=1.0,
max=1000.0,
min=0.00001
)
- origin = EnumProperty(
+ origin: EnumProperty(
name="Origin",
description="Aspect Origin",
items=[
@@ -440,20 +440,20 @@ class MUV_OT_WorldScaleUV_ApplyScalingDensity(bpy.types.Operator):
],
default='CENTER'
)
- src_density = FloatProperty(
+ src_density: FloatProperty(
name="Density",
description="Source Texel Density",
default=0.0,
min=0.0,
options={'HIDDEN'}
)
- same_density = BoolProperty(
+ same_density: BoolProperty(
name="Same Density",
description="Apply same density",
default=False,
options={'HIDDEN'}
)
- show_dialog = BoolProperty(
+ show_dialog: BoolProperty(
name="Show Diaglog Menu",
description="Show dialog menu if true",
default=True,
@@ -541,7 +541,7 @@ class MUV_OT_WorldScaleUV_ApplyProportionalToMesh(bpy.types.Operator):
bl_description = "Apply scaled UV proportionaled to mesh"
bl_options = {'REGISTER', 'UNDO'}
- origin = EnumProperty(
+ origin: EnumProperty(
name="Origin",
description="Aspect Origin",
items=[
@@ -558,28 +558,28 @@ class MUV_OT_WorldScaleUV_ApplyProportionalToMesh(bpy.types.Operator):
],
default='CENTER'
)
- src_density = FloatProperty(
+ src_density: FloatProperty(
name="Source Density",
description="Source Texel Density",
default=0.0,
min=0.0,
options={'HIDDEN'}
)
- src_uv_area = FloatProperty(
+ src_uv_area: FloatProperty(
name="Source UV Area",
description="Source UV Area",
default=0.0,
min=0.0,
options={'HIDDEN'}
)
- src_mesh_area = FloatProperty(
+ src_mesh_area: FloatProperty(
name="Source Mesh Area",
description="Source Mesh Area",
default=0.0,
min=0.0,
options={'HIDDEN'}
)
- show_dialog = BoolProperty(
+ show_dialog: BoolProperty(
name="Show Diaglog Menu",
description="Show dialog menu if true",
default=True,
diff --git a/uv_magic_uv/preferences.py b/uv_magic_uv/preferences.py
index 01d7155e..19715044 100644
--- a/uv_magic_uv/preferences.py
+++ b/uv_magic_uv/preferences.py
@@ -178,7 +178,7 @@ class MUV_OT_UpdateAddon(bpy.types.Operator):
bl_description = "Update Add-on"
bl_options = {'REGISTER', 'UNDO'}
- branch_name = StringProperty(
+ branch_name: StringProperty(
name="Branch Name",
description="Branch name to update",
default="",
@@ -213,7 +213,7 @@ class Preferences(AddonPreferences):
remove_builtin_menu()
# enable to add features to built-in menu
- enable_builtin_menu = BoolProperty(
+ enable_builtin_menu: BoolProperty(
name="Built-in Menu",
description="Enable built-in menu",
default=True,
@@ -221,7 +221,7 @@ class Preferences(AddonPreferences):
)
# for UV Sculpt
- uv_sculpt_brush_color = FloatVectorProperty(
+ uv_sculpt_brush_color: FloatVectorProperty(
name="Color",
description="Color",
default=(1.0, 0.4, 0.4, 1.0),
@@ -232,7 +232,7 @@ class Preferences(AddonPreferences):
)
# for Overlapped UV
- uv_inspection_overlapped_color = FloatVectorProperty(
+ uv_inspection_overlapped_color: FloatVectorProperty(
name="Color",
description="Color",
default=(0.0, 0.0, 1.0, 0.3),
@@ -243,7 +243,7 @@ class Preferences(AddonPreferences):
)
# for Flipped UV
- uv_inspection_flipped_color = FloatVectorProperty(
+ uv_inspection_flipped_color: FloatVectorProperty(
name="Color",
description="Color",
default=(1.0, 0.0, 0.0, 0.3),
@@ -254,7 +254,7 @@ class Preferences(AddonPreferences):
)
# for Texture Projection
- texture_projection_canvas_padding = FloatVectorProperty(
+ texture_projection_canvas_padding: FloatVectorProperty(
name="Canvas Padding",
description="Canvas Padding",
size=2,
@@ -263,13 +263,13 @@ class Preferences(AddonPreferences):
default=(20.0, 20.0))
# for UV Bounding Box
- uv_bounding_box_cp_size = FloatProperty(
+ uv_bounding_box_cp_size: FloatProperty(
name="Size",
description="Control Point Size",
default=6.0,
min=3.0,
max=100.0)
- uv_bounding_box_cp_react_size = FloatProperty(
+ uv_bounding_box_cp_react_size: FloatProperty(
name="React Size",
description="Size event fired",
default=10.0,
@@ -277,7 +277,7 @@ class Preferences(AddonPreferences):
max=100.0)
# for UI
- category = EnumProperty(
+ category: EnumProperty(
name="Category",
description="Preferences Category",
items=[
@@ -287,39 +287,39 @@ class Preferences(AddonPreferences):
],
default='INFO'
)
- info_desc_expanded = BoolProperty(
+ info_desc_expanded: BoolProperty(
name="Description",
description="Description",
default=False
)
- info_loc_expanded = BoolProperty(
+ info_loc_expanded: BoolProperty(
name="Location",
description="Location",
default=False
)
- conf_uv_sculpt_expanded = BoolProperty(
+ conf_uv_sculpt_expanded: BoolProperty(
name="UV Sculpt",
description="UV Sculpt",
default=False
)
- conf_uv_inspection_expanded = BoolProperty(
+ conf_uv_inspection_expanded: BoolProperty(
name="UV Inspection",
description="UV Inspection",
default=False
)
- conf_texture_projection_expanded = BoolProperty(
+ conf_texture_projection_expanded: BoolProperty(
name="Texture Projection",
description="Texture Projection",
default=False
)
- conf_uv_bounding_box_expanded = BoolProperty(
+ conf_uv_bounding_box_expanded: BoolProperty(
name="UV Bounding Box",
description="UV Bounding Box",
default=False
)
# for add-on updater
- updater_branch_to_update = EnumProperty(
+ updater_branch_to_update: EnumProperty(
name="branch",
description="Target branch to update add-on",
items=get_update_candidate_branches