Skip to content

Commit

Permalink
Fixed a bug with eye generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Halac committed Nov 3, 2022
1 parent 16b7303 commit b5100ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rigs/game/face/skin_eye.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ def parent_deform_chain(self):
@stage.rig_bones
def rig_deform_chain(self):
super().rig_deform_chain()
self.make_constraint(self.bones.deform.eye, 'COPY_LOCATION', self.bones.mch.master)
self.make_constraint(self.bones.deform.eye, 'COPY_ROTATION', self.bones.mch.master)
if hasattr(self.bones.deform, 'eye'):
self.make_constraint(self.bones.deform.eye, 'COPY_LOCATION', self.bones.mch.master)
self.make_constraint(self.bones.deform.eye, 'COPY_ROTATION', self.bones.mch.master)


def create_sample(obj):
Expand Down

0 comments on commit b5100ad

Please sign in to comment.