浏览代码

Fix to loading object animation for Blender 2.62+ (found by 'reactlogic').

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9382 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Kae..pl 13 年之前
父节点
当前提交
f8771f437e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      engine/src/blender/com/jme3/scene/plugins/blender/animations/IpoHelper.java

+ 1 - 1
engine/src/blender/com/jme3/scene/plugins/blender/animations/IpoHelper.java

@@ -130,7 +130,7 @@ public class IpoHelper extends AbstractBlenderHelper {
 		if (rnaPath.endsWith("scale")) {
 			return Ipo.AC_SIZE_X + arrayIndex;
 		}
-		if (rnaPath.endsWith("rotation")) {
+		if (rnaPath.endsWith("rotation") || rnaPath.endsWith("rotation_euler")) {
 			return Ipo.OB_ROT_X + arrayIndex;
 		}
 		throw new IllegalStateException("Unknown curve rna path: " + rnaPath);