diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2021-01-17 19:10:34 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2021-01-18 12:31:12 +0300 |
commit | 73dd51d5f464d1dd0227ff92cb2d30c912c6dc3d (patch) | |
tree | 2a94bea1fe344555668ed382c7aa30465e5d731c | |
parent | f1ed616a28ad5f4cae46a63893752bc3238c58e0 (diff) |
Rigify: fix incorrect locks on the neck bend control.
-rw-r--r-- | rigify/rigs/spines/super_head.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rigify/rigs/spines/super_head.py b/rigify/rigs/spines/super_head.py index f35e122c..f71a95ff 100644 --- a/rigify/rigs/spines/super_head.py +++ b/rigify/rigs/spines/super_head.py @@ -135,7 +135,13 @@ class Rig(BaseHeadTailRig): self.configure_control_bone(0, self.bones.ctrl.neck, self.bones.org[0]) self.configure_control_bone(2, self.bones.ctrl.head, self.bones.org[-1]) if self.long_neck: - self.configure_control_bone(1, self.bones.ctrl.neck_bend, self.bones.org[0]) + self.configure_neck_bend_bone(self.bones.ctrl.neck_bend, self.bones.org[0]) + + def configure_neck_bend_bone(self, ctrl, org): + bone = self.get_bone(ctrl) + bone.lock_rotation = (True, True, True) + bone.lock_rotation_w = True + bone.lock_scale = (True, True, True) @stage.generate_widgets def make_control_widgets(self): |