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 <demeter@blender.studio>2020-09-07 17:18:44 +0300
committerDemeter Dzadik <demeter@blender.studio>2020-09-07 17:21:03 +0300
commit943e7dfb1c0142afbca812447d2d77aaef5c8591 (patch)
treef7e3cfcb39ec857c9b73804d0d769ee9932d592e /rigify/utils/layers.py
parentda2b17e46cb937493454e3f47498cc76a0a51404 (diff)
Rigify: Code Cleanup: Use ControlLayersOption class
This class exists specifically for the purpose of defining and drawing the UI for bone layer assignment parameters, as seen in other rig types like super_chain, limb_rigs, simple_tentacle, etc. Only super_face was missing it for some reason. Although the way it is used may be questionable, it's consistent with the rest of the codebase. No functional changes. Note for future: I would also like to use the ControlLayersOption class in even more places, and also maybe rename it and make improvements to it as needed. This would also be part of a bigger design of how Rigify handles bone organization, which I should write down. Reviewed By: sybren Differential Revision: https://developer.blender.org/D8802
Diffstat (limited to 'rigify/utils/layers.py')
-rw-r--r--rigify/utils/layers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rigify/utils/layers.py b/rigify/utils/layers.py
index 7d85cd4d..52deeac0 100644
--- a/rigify/utils/layers.py
+++ b/rigify/utils/layers.py
@@ -137,3 +137,7 @@ class ControlLayersOption:
ControlLayersOption.FK = ControlLayersOption('fk', description="Layers for the FK controls to be on")
ControlLayersOption.TWEAK = ControlLayersOption('tweak', description="Layers for the tweak controls to be on")
+
+# Layer parameters used by the super_face rig.
+ControlLayersOption.FACE_PRIMARY = ControlLayersOption('primary', description="Layers for the primary controls to be on")
+ControlLayersOption.FACE_SECONDARY = ControlLayersOption('secondary', description="Layers for the secondary controls to be on")