SkeletonControl gatheres target on render instead of on update

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10578 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent 517f621871
commit a3fe5860cc
  1. 4
      engine/src/core/com/jme3/animation/SkeletonControl.java

@ -289,6 +289,7 @@ public class SkeletonControl extends AbstractControl implements Cloneable {
@Override
protected void controlRender(RenderManager rm, ViewPort vp) {
updateTargetsAndMaterials(spatial);
if (!wasMeshUpdated) {
// Prevent illegal cases. These should never happen.
assert hwSkinningTested || (!hwSkinningTested && !hwSkinningSupported && !hwSkinningEnabled);
@ -326,8 +327,7 @@ public class SkeletonControl extends AbstractControl implements Cloneable {
@Override
protected void controlUpdate(float tpf) {
wasMeshUpdated = false;
updateTargetsAndMaterials(spatial);
}
}
//only do this for software updates
void resetToBind() {

Loading…
Cancel
Save