From 84404cfb5f59b8a1377b6f0e93762bd4b53da273 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Sat, 9 Jun 2012 15:04:43 +0000 Subject: [PATCH] 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 --- .../blender/com/jme3/scene/plugins/blender/animations/Ipo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/animations/Ipo.java b/engine/src/blender/com/jme3/scene/plugins/blender/animations/Ipo.java index 58ce48cf9..b416118b4 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/animations/Ipo.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/animations/Ipo.java @@ -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 };