diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-12 16:09:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-12 16:09:15 +0300 |
commit | 9dc19735c32dcec30d03516365c2cee8a4b4ddc6 (patch) | |
tree | 9ed6cd54c1f9e234618fbdc6b36e541b8bb3985d /bone_selection_sets.py | |
parent | 8a9cc98ff1328910b70f09bba196954c87738fb2 (diff) |
Python: use fields
Diffstat (limited to 'bone_selection_sets.py')
-rw-r--r-- | bone_selection_sets.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bone_selection_sets.py b/bone_selection_sets.py index f0af60db..fcc4b70c 100644 --- a/bone_selection_sets.py +++ b/bone_selection_sets.py @@ -50,12 +50,12 @@ from bpy.props import ( # Note: bones are stored by name, this means that if the bone is renamed, # there can be problems. However, bone renaming is unlikely during animation class SelectionEntry(PropertyGroup): - name = StringProperty(name="Bone Name") + name: StringProperty(name="Bone Name") class SelectionSet(PropertyGroup): - name = StringProperty(name="Set Name") - bone_ids = CollectionProperty(type=SelectionEntry) + name: StringProperty(name="Set Name") + bone_ids: CollectionProperty(type=SelectionEntry) # UI Panel w/ UIList ########################################################## @@ -210,7 +210,7 @@ class POSE_OT_selection_set_move(NeedSelSetPluginOperator): bl_description = "Move the active Selection Set up/down the list of sets" bl_options = {'UNDO', 'REGISTER'} - direction = EnumProperty( + direction: EnumProperty( name="Move Direction", description="Direction to move the active Selection Set: UP (default) or DOWN", items=[ @@ -334,10 +334,11 @@ class POSE_OT_selection_set_select(NeedSelSetPluginOperator): bl_description = "Add Selection Set bones to current selection" bl_options = {'UNDO', 'REGISTER'} - selection_set_index = IntProperty( + selection_set_index: IntProperty( name='Selection Set Index', default=-1, - description='Which Selection Set to select; -1 uses the active Selection Set') + description='Which Selection Set to select; -1 uses the active Selection Set', + ) def execute(self, context): arm = context.object |