浏览代码

Merge pull request #261 from Jason0214/fix_axis_angle

Support rotation mode 'AXIS_ANGLE'
Lu Jiacheng 6 年之前
父节点
当前提交
2cd4cb1cda
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      io_scene_godot/converters/animation/serializer.py

+ 1 - 1
io_scene_godot/converters/animation/serializer.py

@@ -86,7 +86,7 @@ class TransformFrame:
         # FIXME: lose negative scale
         xform_frame.scale = xform_matrix.to_scale()
 
-        if rotation_mode == 'QUATERNION':
+        if rotation_mode in ('QUATERNION', 'AXIS_ANGLE'):
             xform_frame.rotation_euler = xform_matrix.to_euler()
         else:
             xform_frame.rotation_euler = xform_matrix.to_euler(rotation_mode)