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:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-09-14 09:22:52 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-09-14 09:30:01 +0300
commit6aabd3a966a34faf40e27a557c217218d8fed01f (patch)
tree288f22cde130b1560750b8e37011f6d116acbfe5 /rigify/base_rig.py
parentd43b2ca4a9f31a9a3f988473a65de2095c9cfcc8 (diff)
Rigify: add a generic callback for all rig parameters.
This may be useful for things like mirroring. Since the parameter name space is shared by all rigs, it would be inappropriate for individual rigs to add their specific callbacks to properties. Differential Revision: https://developer.blender.org/D4624
Diffstat (limited to 'rigify/base_rig.py')
-rw-r--r--rigify/base_rig.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rigify/base_rig.py b/rigify/base_rig.py
index cae0e569..6b01c43a 100644
--- a/rigify/base_rig.py
+++ b/rigify/base_rig.py
@@ -236,6 +236,12 @@ class BaseRig(GenerateCallbackHost, RaiseErrorMixin, BoneUtilityMixin, Mechanism
"""
layout.label(text="No options")
+ @classmethod
+ def on_parameter_update(cls, context, pose_bone, params, param_name):
+ """
+ A callback invoked whenever a parameter value is changed by the user.
+ """
+
#=============================================
# Rig Utility