diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-11-02 16:08:26 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-11-02 16:09:39 +0300 |
commit | 67f1fbca1482d9d9362a4001332e785c3fd5d230 (patch) | |
tree | 27cf708ca5fca23bea8cc7e999178e98ca21922a /rigify/rigs/spines/super_head.py | |
parent | db3e15be7a0f7b403bedb5b762d79e1970a4fc59 (diff) |
Rigify: support switchable parents in the basic.pivot rig.
Implement options to generate a parent switch mechanism for the
main pivot control, and to register the pivot as a parent for other
rigs to use (including support for one level parent injection).
Diffstat (limited to 'rigify/rigs/spines/super_head.py')
-rw-r--r-- | rigify/rigs/spines/super_head.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rigify/rigs/spines/super_head.py b/rigify/rigs/spines/super_head.py index 65db79cc..15f011f7 100644 --- a/rigify/rigs/spines/super_head.py +++ b/rigify/rigs/spines/super_head.py @@ -322,7 +322,10 @@ class Rig(BaseHeadTailRig): def register_parent_bones(self): rig = self.rigify_parent or self builder = SwitchParentBuilder(self.generator) - builder.register_parent(rig, self.bones.org[-1], name='Head', exclude_self=True, tags={'head'}) + builder.register_parent( + self, self.bones.org[-1], name='Head', + inject_into=rig, exclude_self=True, tags={'head'}, + ) @stage.configure_bones def configure_bbone_chain(self): |