From 549967165691865af5970b09469870390e867e6b Mon Sep 17 00:00:00 2001 From: SE2Dev Date: Fri, 19 Jun 2020 16:21:55 -0400 Subject: [PATCH] Add Missing @ Operators --- export_seanim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/export_seanim.py b/export_seanim.py index 22d2182..5753ec4 100644 --- a/export_seanim.py +++ b/export_seanim.py @@ -16,7 +16,7 @@ g_scale = 1 # TODO - Proper scaling def get_loc_vec(bone, anim_type): if (anim_type == SEAnim.SEANIM_TYPE.SEANIM_TYPE_ABSOLUTE and bone.parent is not None): - return bone.parent.matrix.inverted() * bone.matrix.translation + return bone.parent.matrix.inverted() @ bone.matrix.translation return bone.matrix_basis.translation # TODO: Support for SEANIM_TYPE_ADDITIVE @@ -32,7 +32,7 @@ def get_rot_quat(bone, anim_type): return bone.matrix.to_quaternion() else: mtx = bone.parent.matrix.to_3x3() - return (mtx.inverted() * bone.matrix.to_3x3()).to_quaternion() + return (mtx.inverted() @ bone.matrix.to_3x3()).to_quaternion() # Generate a SEAnim compatible LOC keyframe from a given pose bone