Main repository of MikuMikuStudio
Révision | ca01c21a24b881cd2525d30677ddcd84290b0b4e (tree) |
---|---|
l'heure | 2013-04-27 23:46:46 |
Auteur | remy.bouquet@gmail.com <remy.bouquet@gmai...> |
Commiter | remy.bouquet@gmail.com |
SkeletonControl made some cleanup, removed old comments
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10579 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@@ -426,14 +426,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable { | ||
426 | 426 | } |
427 | 427 | |
428 | 428 | /** |
429 | - * sets the skeleton for this control | |
430 | - * | |
431 | - * @param skeleton | |
432 | - */ | |
433 | -// public void setSkeleton(Skeleton skeleton) { | |
434 | -// this.skeleton = skeleton; | |
435 | -// } | |
436 | - /** | |
437 | 429 | * returns a copy of array of the targets meshes of this control |
438 | 430 | * |
439 | 431 | * @return |
@@ -443,14 +435,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable { | ||
443 | 435 | } |
444 | 436 | |
445 | 437 | /** |
446 | - * sets the target meshes of this control | |
447 | - * | |
448 | - * @param targets | |
449 | - */ | |
450 | -// public void setTargets(Mesh[] targets) { | |
451 | -// this.targets = targets; | |
452 | -// } | |
453 | - /** | |
454 | 438 | * Update the mesh according to the given transformation matrices |
455 | 439 | * |
456 | 440 | * @param mesh then mesh |
@@ -731,26 +715,14 @@ public class SkeletonControl extends AbstractControl implements Cloneable { | ||
731 | 715 | super.write(ex); |
732 | 716 | OutputCapsule oc = ex.getCapsule(this); |
733 | 717 | oc.write(skeleton, "skeleton", null); |
734 | - //Targets and materials doesn't need to be saved, th'ay be gathered on each frame | |
735 | - //oc.write(targets, "targets", null); | |
736 | - //oc.write(materials, "materials", null); | |
718 | + //Targets and materials don't need to be saved, they'll be gathered on each frame | |
737 | 719 | } |
738 | 720 | |
739 | 721 | @Override |
740 | 722 | public void read(JmeImporter im) throws IOException { |
741 | 723 | super.read(im); |
742 | 724 | InputCapsule in = im.getCapsule(this); |
743 | -// Savable[] sav = in.readSavableArray("targets", null); | |
744 | -// if (sav != null) { | |
745 | -// targets = new Mesh[sav.length]; | |
746 | -// System.arraycopy(sav, 0, targets, 0, sav.length); | |
747 | -// } | |
748 | 725 | skeleton = (Skeleton) in.readSavable("skeleton", null); |
749 | -// sav = in.readSavableArray("materials", null); | |
750 | -// if (sav != null) { | |
751 | -// materials = new Material[sav.length]; | |
752 | -// System.arraycopy(sav, 0, materials, 0, sav.length); | |
753 | -// } | |
754 | 726 | } |
755 | 727 | |
756 | 728 | private void updateTargetsAndMaterials(Spatial spatial) { |