Skip to content
Snippets Groups Projects
Commit 0136e907 authored by Bastien Montagne's avatar Bastien Montagne
Browse files

FBX export: angles are in degrees in FBX (*sigh* again).

parent 91976e77
No related branches found
No related tags found
No related merge requests found
...@@ -1860,8 +1860,9 @@ def fbx_animations_do(scene_data, ref_id, f_start, f_end, start_zero, objects=No ...@@ -1860,8 +1860,9 @@ def fbx_animations_do(scene_data, ref_id, f_start, f_end, start_zero, objects=No
for ob_obj in objects: for ob_obj in objects:
ACNW = AnimationCurveNodeWrapper ACNW = AnimationCurveNodeWrapper
loc, rot, scale, _m, _mr = ob_obj.fbx_object_tx(scene_data) loc, rot, scale, _m, _mr = ob_obj.fbx_object_tx(scene_data)
rot_deg = tuple(convert_rad_to_deg_iter(rot))
animdata_ob[ob_obj] = (ACNW(ob_obj.key, 'LCL_TRANSLATION', ob_obj.is_bone and force_keying, loc), animdata_ob[ob_obj] = (ACNW(ob_obj.key, 'LCL_TRANSLATION', ob_obj.is_bone and force_keying, loc),
ACNW(ob_obj.key, 'LCL_ROTATION', ob_obj.is_bone and force_keying, rot), ACNW(ob_obj.key, 'LCL_ROTATION', ob_obj.is_bone and force_keying, rot_deg),
ACNW(ob_obj.key, 'LCL_SCALING', ob_obj.is_bone and force_keying, scale)) ACNW(ob_obj.key, 'LCL_SCALING', ob_obj.is_bone and force_keying, scale))
p_rots[ob_obj] = rot p_rots[ob_obj] = rot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment