@@ -44,8 +44,8 @@ def build_skeleton(self, pkg_name, obj_name):
4444 quat = FQuat (bone ['rotq' ][2 ], bone ['rotq' ][0 ] * - 1 ,
4545 bone ['rotq' ][1 ] * - 1 , bone ['rotq' ][3 ])
4646 elif 'rot' in bone :
47- quat = FRotator (bone ['rot' ][2 ], bone ['rot' ][0 ] * -
48- 1 , bome ['rot' ][1 ] * - 1 ).quaternion ()
47+ quat = FRotator (bone ['rot' ][2 ], bone ['rot' ][0 ] - 180
48+ , bone ['rot' ][1 ] - 180 ).quaternion ()
4949 pos = FVector (bone ['pos' ][2 ] * - 1 , bone ['pos' ][0 ],
5050 bone ['pos' ][1 ]) * self .scale
5151 # always set parent+1 as we added the root bone before
@@ -227,7 +227,7 @@ def build_animation(self, pkg_name, obj_name):
227227 (t , FQuat (key ['rot' ][2 ], key ['rot' ][0 ] * - 1 , key ['rot' ][1 ] * - 1 , key ['rot' ][3 ])))
228228 else :
229229 rotations .append (
230- (t , FRotator (key ['rot' ][2 ], key ['rot' ][0 ] * - 1 , key ['rot' ][1 ] * - 1 ).quaternion ()))
230+ (t , FRotator (key ['rot' ][2 ], key ['rot' ][0 ] - 180 , key ['rot' ][1 ] - 180 ).quaternion ()))
231231 pos_keys = []
232232 rot_keys = []
233233 # generate the right number of frames
0 commit comments