[Bf-extensions-cvs] [0136e90] master: FBX export: angles are in degrees in FBX (*sigh* again).
Bastien Montagne
noreply at git.blender.org
Mon May 18 20:20:50 CEST 2015
Commit: 0136e9077946a4db81506d0b89f2681ba3b1073f
Author: Bastien Montagne
Date: Mon May 18 20:20:26 2015 +0200
Branches: master
https://developer.blender.org/rBA0136e9077946a4db81506d0b89f2681ba3b1073f
FBX export: angles are in degrees in FBX (*sigh* again).
===================================================================
M io_scene_fbx/export_fbx_bin.py
===================================================================
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 1264559..8f9f53c 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -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:
ACNW = AnimationCurveNodeWrapper
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),
- 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))
p_rots[ob_obj] = rot
More information about the Bf-extensions-cvs
mailing list