Fix for animations tracks loading. If rotations were not set up by user then the model might have been disappearing because of (0, 0, 0, 0) rotation quaternion. (0, 0, 0, 1) quaternion is set in that case.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9463 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Kae..pl 2012-06-09 15:04:43 +00:00
parent b97f8c1271
commit 84404cfb5f

View File

@ -134,7 +134,7 @@ public class Ipo {
Vector3f[] translations = new Vector3f[framesAmount + 1];
float[] translation = new float[3];
Quaternion[] rotations = new Quaternion[framesAmount + 1];
float[] quaternionRotation = new float[4];
float[] quaternionRotation = new float[] { 0, 0, 0, 1 };
float[] objectRotation = new float[3];
Vector3f[] scales = new Vector3f[framesAmount + 1];
float[] scale = new float[] { 1.0f, 1.0f, 1.0f };