diff --git a/jme3-core/src/main/java/com/jme3/animation/AnimControl.java b/jme3-core/src/main/java/com/jme3/animation/AnimControl.java index 6c25da7ec..615fe2fd8 100644 --- a/jme3-core/src/main/java/com/jme3/animation/AnimControl.java +++ b/jme3-core/src/main/java/com/jme3/animation/AnimControl.java @@ -372,9 +372,8 @@ public final class AnimControl extends AbstractControl implements Cloneable { // When backward compatibility won't be needed anymore this can deleted Savable[] sav = in.readSavableArray("targets", null); if (sav != null) { - Mesh[] targets = new Mesh[sav.length]; - System.arraycopy(sav, 0, targets, 0, sav.length); - skeletonControl = new SkeletonControl(targets, skeleton); + // NOTE: allow the targets to be gathered automatically + skeletonControl = new SkeletonControl(skeleton); spatial.addControl(skeletonControl); } } diff --git a/jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java b/jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java index 269a9b989..abde5dfe9 100644 --- a/jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java +++ b/jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java @@ -205,19 +205,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable { this.skeleton = skeleton; } - /** - * Creates a skeleton control. - * - * @param targets the meshes controlled by the skeleton - * @param skeleton the skeleton - */ - @Deprecated - SkeletonControl(Mesh[] targets, Skeleton skeleton) { - this.skeleton = skeleton; - this.targets = new SafeArrayList(Mesh.class, Arrays.asList(targets)); - } - - private void findTargets(Node node) { Mesh sharedMesh = null;