diff options
author | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-18 00:48:54 +0300 |
commit | aeabdc02a83a976b2f594cd66873c6d2b537e669 (patch) | |
tree | 3ac5922be25219ab666aae4b8d04002bce2e70a6 /mesh_auto_mirror.py | |
parent | ba97e19e5b3df449784a4cc4ed89ce7b511ec3e4 (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 'mesh_auto_mirror.py')
-rw-r--r-- | mesh_auto_mirror.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mesh_auto_mirror.py b/mesh_auto_mirror.py index 63952b7f..fa0663af 100644 --- a/mesh_auto_mirror.py +++ b/mesh_auto_mirror.py @@ -208,7 +208,7 @@ class BisectMirror(Panel): class AutoMirrorProperties(PropertyGroup): - axis = EnumProperty( + axis: EnumProperty( name="Axis", items=[ ("x", "X", "", 1), @@ -217,7 +217,7 @@ class AutoMirrorProperties(PropertyGroup): ], description="Axis used by the mirror modifier" ) - orientation = EnumProperty( + orientation: EnumProperty( name="Orientation", items=[ ("positive", "Positive", "", 1), @@ -225,34 +225,34 @@ class AutoMirrorProperties(PropertyGroup): ], description="Choose the side along the axis of the editable part (+/- coordinates)" ) - threshold = FloatProperty( + threshold: FloatProperty( default=0.001, min=0.001, description="Vertices closer than this distance are merged on the loopcut" ) - toggle_edit = BoolProperty( + toggle_edit: BoolProperty( name="Toggle Edit Mode", default=True, description="If not in Edit mode, change mode to it" ) - cut = BoolProperty( + cut: BoolProperty( name="Cut", default=True, description="If enabled, cut the mesh in two parts and mirror it\n" "If not, just make a loopcut" ) - clipping = BoolProperty( + clipping: BoolProperty( default=True ) - use_clip = BoolProperty( + use_clip: BoolProperty( default=True, description="Use clipping for the mirror modifier" ) - show_on_cage = BoolProperty( + show_on_cage: BoolProperty( default=True, description="Enable editing the cage (it's the classical modifier's option)" ) - apply_mirror = BoolProperty( + apply_mirror: BoolProperty( description="Apply the mirror modifier (useful to symmetrise the mesh)" ) |