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