Skip to content

Commit

Permalink
Update operators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinokage107 authored Jul 27, 2023
1 parent 4932805 commit e0be99b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def poll(cls, context):
def execute(self, context):
arm = context.scene.anamnesis_armature.pose

hara = arm.bones['n_hara'].matrix_basis
hara = arm.bones['n_throw'].matrix_basis
arm.bones['n_throw'].matrix_basis = Matrix()
diff = Quaternion([1,0,0,0]).rotation_difference(arm.bones['n_hara'].matrix.to_quaternion())
diff = Quaternion([1,0,0,0]).rotation_difference(arm.bones['n_throw'].matrix.to_quaternion())
arm.bones['n_throw'].matrix_basis = hara

with open(self.filepath, 'w') as f:
Expand Down

0 comments on commit e0be99b

Please sign in to comment.