Bladeren bron

SkeletonControl made some cleanup, removed old comments

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10579 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 12 jaren geleden
bovenliggende
commit
b93715f66b
1 gewijzigde bestanden met toevoegingen van 1 en 29 verwijderingen
  1. 1 29
      engine/src/core/com/jme3/animation/SkeletonControl.java

+ 1 - 29
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) {