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 /space_view3d_brush_menus
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 'space_view3d_brush_menus')
-rw-r--r--space_view3d_brush_menus/__init__.py4
-rw-r--r--space_view3d_brush_menus/brush_menu.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/space_view3d_brush_menus/__init__.py b/space_view3d_brush_menus/__init__.py
index 3371505e..891a22de 100644
--- a/space_view3d_brush_menus/__init__.py
+++ b/space_view3d_brush_menus/__init__.py
@@ -64,7 +64,7 @@ from bpy.props import (
class VIEW3D_MT_Brushes_Pref(AddonPreferences):
bl_idname = __name__
- use_brushes_menu_type = EnumProperty(
+ use_brushes_menu_type: EnumProperty(
name="Choose Brushes Selection",
description="",
items=[('lists', "Use compact Menus",
@@ -78,7 +78,7 @@ class VIEW3D_MT_Brushes_Pref(AddonPreferences):
],
default='lists'
)
- column_set = IntProperty(
+ column_set: IntProperty(
name="Number of Columns",
description="Number of columns used for the brushes menu",
default=2,
diff --git a/space_view3d_brush_menus/brush_menu.py b/space_view3d_brush_menus/brush_menu.py
index 53df3b81..f8c46ba7 100644
--- a/space_view3d_brush_menus/brush_menu.py
+++ b/space_view3d_brush_menus/brush_menu.py
@@ -496,7 +496,7 @@ class FlipColorsAll(Operator):
bl_idname = "view3d.sv3_flip_colors_all"
bl_description = "Switch between Foreground and Background colors"
- is_tex = BoolProperty(
+ is_tex: BoolProperty(
default=False,
options={'HIDDEN'}
)