Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-05-18 21:20:26 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-05-18 21:20:26 +0300
commit0136e9077946a4db81506d0b89f2681ba3b1073f (patch)
tree1d48f148165b74975edb77aed00ae84c2b53805c
parent91976e77c322b95fa29544a81dd46c3008facddd (diff)
FBX export: angles are in degrees in FBX (*sigh* again).
-rw-r--r--io_scene_fbx/export_fbx_bin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 12645594..8f9f53cb 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