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
This commit is contained in:
Kae..pl 2012-05-13 14:49:50 +00:00
parent 2cec3f82eb
commit f8771f437e

View File

@ -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);