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 /uv_bake_texture_to_vcols.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 'uv_bake_texture_to_vcols.py')
-rw-r--r-- | uv_bake_texture_to_vcols.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uv_bake_texture_to_vcols.py b/uv_bake_texture_to_vcols.py index 0dc5e549..9a83c6dc 100644 --- a/uv_bake_texture_to_vcols.py +++ b/uv_bake_texture_to_vcols.py @@ -55,7 +55,7 @@ class UV_OT_bake_texture_to_vcols(bpy.types.Operator): "(requires image texture)" bl_options = {'REGISTER', 'UNDO'} - replace_active_layer = BoolProperty( + replace_active_layer: BoolProperty( name="Replace layer", description="Overwrite active Vertex Color layer", default=True) @@ -65,7 +65,7 @@ class UV_OT_bake_texture_to_vcols(bpy.types.Operator): ("REPEAT", "Repeat", "Tile the image so that each vertex is accounted for."), ("EXTEND", "Extend", "Extends the edges of the image to the UV-coordinates.")] - mappingMode = EnumProperty( + mappingMode: EnumProperty( items=mappingModes, default="CLIP", name="Mapping", @@ -89,14 +89,14 @@ class UV_OT_bake_texture_to_vcols(bpy.types.Operator): ("LINEAR_LIGHT", "Linear Light", "") ] - blendingMode = EnumProperty( + blendingMode: EnumProperty( items=blendingModes, default="MULTIPLY", name="Blend Type", description="The blending mode to use when baking") - mirror_x = BoolProperty(name="Mirror X", description="Mirror the image on the X-axis") - mirror_y = BoolProperty(name="Mirror Y", description="Mirror the image on the Y-axis") + mirror_x: BoolProperty(name="Mirror X", description="Mirror the image on the X-axis") + mirror_y: BoolProperty(name="Mirror Y", description="Mirror the image on the Y-axis") @classmethod def poll(self, context): |