Rigify: fix incorrect locks on the neck bend control.

This commit is contained in:
Alexander Gavrilov 2021-01-17 19:10:34 +03:00
parent f1ed616a28
commit 73dd51d5f4
1 changed files with 7 additions and 1 deletions

View File

@ -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):