From b93715f66b734208d6fd4c9e1c71c6d6457ab946 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sat, 27 Apr 2013 14:46:46 +0000 Subject: [PATCH] SkeletonControl made some cleanup, removed old comments git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10579 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/animation/SkeletonControl.java | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/engine/src/core/com/jme3/animation/SkeletonControl.java b/engine/src/core/com/jme3/animation/SkeletonControl.java index b0eb72527..9af184db7 100644 --- a/engine/src/core/com/jme3/animation/SkeletonControl.java +++ b/engine/src/core/com/jme3/animation/SkeletonControl.java @@ -425,14 +425,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable { return skeleton; } - /** - * sets the skeleton for this control - * - * @param skeleton - */ -// public void setSkeleton(Skeleton skeleton) { -// this.skeleton = skeleton; -// } /** * returns a copy of array of the targets meshes of this control * @@ -442,14 +434,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable { return targets.toArray(new Mesh[targets.size()]); } - /** - * sets the target meshes of this control - * - * @param targets - */ -// public void setTargets(Mesh[] targets) { -// this.targets = targets; -// } /** * Update the mesh according to the given transformation matrices * @@ -731,26 +715,14 @@ public class SkeletonControl extends AbstractControl implements Cloneable { super.write(ex); OutputCapsule oc = ex.getCapsule(this); oc.write(skeleton, "skeleton", null); - //Targets and materials doesn't need to be saved, th'ay be gathered on each frame - //oc.write(targets, "targets", null); - //oc.write(materials, "materials", null); + //Targets and materials don't need to be saved, they'll be gathered on each frame } @Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule in = im.getCapsule(this); -// Savable[] sav = in.readSavableArray("targets", null); -// if (sav != null) { -// targets = new Mesh[sav.length]; -// System.arraycopy(sav, 0, targets, 0, sav.length); -// } skeleton = (Skeleton) in.readSavable("skeleton", null); -// sav = in.readSavableArray("materials", null); -// if (sav != null) { -// materials = new Material[sav.length]; -// System.arraycopy(sav, 0, materials, 0, sav.length); -// } } private void updateTargetsAndMaterials(Spatial spatial) {