SkeletonControl made some cleanup, removed old comments
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10579 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
a3fe5860cc
commit
b93715f66b
@ -425,14 +425,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable {
|
|||||||
return skeleton;
|
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
|
* 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()]);
|
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
|
* Update the mesh according to the given transformation matrices
|
||||||
*
|
*
|
||||||
@ -731,26 +715,14 @@ public class SkeletonControl extends AbstractControl implements Cloneable {
|
|||||||
super.write(ex);
|
super.write(ex);
|
||||||
OutputCapsule oc = ex.getCapsule(this);
|
OutputCapsule oc = ex.getCapsule(this);
|
||||||
oc.write(skeleton, "skeleton", null);
|
oc.write(skeleton, "skeleton", null);
|
||||||
//Targets and materials doesn't need to be saved, th'ay be gathered on each frame
|
//Targets and materials don't need to be saved, they'll be gathered on each frame
|
||||||
//oc.write(targets, "targets", null);
|
|
||||||
//oc.write(materials, "materials", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void read(JmeImporter im) throws IOException {
|
public void read(JmeImporter im) throws IOException {
|
||||||
super.read(im);
|
super.read(im);
|
||||||
InputCapsule in = im.getCapsule(this);
|
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);
|
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) {
|
private void updateTargetsAndMaterials(Spatial spatial) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user