Explorar el Código

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 hace 13 años
padre
commit
f8771f437e

+ 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")) {
 		if (rnaPath.endsWith("scale")) {
 			return Ipo.AC_SIZE_X + arrayIndex;
 			return Ipo.AC_SIZE_X + arrayIndex;
 		}
 		}
-		if (rnaPath.endsWith("rotation")) {
+		if (rnaPath.endsWith("rotation") || rnaPath.endsWith("rotation_euler")) {
 			return Ipo.OB_ROT_X + arrayIndex;
 			return Ipo.OB_ROT_X + arrayIndex;
 		}
 		}
 		throw new IllegalStateException("Unknown curve rna path: " + rnaPath);
 		throw new IllegalStateException("Unknown curve rna path: " + rnaPath);