From fd9f2740498d56468270117f360ee67d6c986036 Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Sat, 30 Jun 2012 18:03:51 +0000 Subject: [PATCH] * Committed fixes to mesh animation classes (not currently used). See http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/fix-to-ogre-mesh-animations-deserializing git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9534 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/animation/Pose.java | 33 +++++++++++++------ .../core/com/jme3/animation/PoseTrack.java | 28 ++++++++++++++-- 2 files changed, 49 insertions(+), 12 deletions(-) diff --git a/engine/src/core/com/jme3/animation/Pose.java b/engine/src/core/com/jme3/animation/Pose.java index 9ff6ec8b1..7498bf3f2 100644 --- a/engine/src/core/com/jme3/animation/Pose.java +++ b/engine/src/core/com/jme3/animation/Pose.java @@ -59,6 +59,13 @@ public final class Pose implements Savable, Cloneable { this.indices = indices; } + /** + * Serialization-only. Do not use. + */ + public Pose() + { + } + public int getTargetMeshIndex(){ return targetMeshIndex; } @@ -92,21 +99,22 @@ public final class Pose implements Savable, Cloneable { * This method creates a clone of the current object. * @return a clone of the current object */ + @Override public Pose clone() { - try { - Pose result = (Pose) super.clone(); + try { + Pose result = (Pose) super.clone(); result.indices = this.indices.clone(); - if(this.offsets!=null) { - result.offsets = new Vector3f[this.offsets.length]; - for(int i=0;i