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:
authorDemeter Dzadik <Mets>2020-07-28 12:38:53 +0300
committerBastien Montagne <bastien@blender.org>2020-07-28 12:38:53 +0300
commitf156a1248b974454e0cc20b8f0e04b1434d6293b (patch)
tree84f779c8580221c59c8294247c2b96c704225623
parent497f422df0a3165c01c4db1acff78fbad4c25d11 (diff)
Bone Selection Sets: Make all property definitions Library Overridable
Without this, the addon simply doesn't work on library overridden rigs, since all the addon's interface is grayed out with an error message saying the properties are not overridable. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D8403
-rw-r--r--bone_selection_sets.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/bone_selection_sets.py b/bone_selection_sets.py
index 8e07f418..86338da2 100644
--- a/bone_selection_sets.py
+++ b/bone_selection_sets.py
@@ -50,13 +50,13 @@ 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", override={'LIBRARY_OVERRIDABLE'})
class SelectionSet(PropertyGroup):
- name: StringProperty(name="Set Name")
- bone_ids: CollectionProperty(type=SelectionEntry)
- is_selected: BoolProperty(name="Is Selected")
+ name: StringProperty(name="Set Name", override={'LIBRARY_OVERRIDABLE'})
+ bone_ids: CollectionProperty(type=SelectionEntry, override={'LIBRARY_OVERRIDABLE'})
+ is_selected: BoolProperty(name="Is Selected", override={'LIBRARY_OVERRIDABLE'})
# UI Panel w/ UIList ##########################################################
@@ -545,12 +545,14 @@ def register():
bpy.types.Object.selection_sets = CollectionProperty(
type=SelectionSet,
name="Selection Sets",
- description="List of groups of bones for easy selection"
+ description="List of groups of bones for easy selection",
+ override={'LIBRARY_OVERRIDABLE'}
)
bpy.types.Object.active_selection_set = IntProperty(
name="Active Selection Set",
description="Index of the currently active selection set",
- default=0
+ default=0,
+ override={'LIBRARY_OVERRIDABLE'}
)
# Add shortcuts to the keymap.