SkeletonControl gatheres target on render instead of on update
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10578 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
517f621871
commit
a3fe5860cc
@ -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,7 +327,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable {
|
||||
@Override
|
||||
protected void controlUpdate(float tpf) {
|
||||
wasMeshUpdated = false;
|
||||
updateTargetsAndMaterials(spatial);
|
||||
}
|
||||
|
||||
//only do this for software updates
|
||||
|
Loading…
x
Reference in New Issue
Block a user