* SkeletonControl: Update targets and materials only for the first camera in which a model is rendered.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10586 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..om 12 years ago
parent 9961f77445
commit e4478dc65c
  1. 3
      engine/src/core/com/jme3/animation/SkeletonControl.java

@ -289,8 +289,9 @@ public class SkeletonControl extends AbstractControl implements Cloneable {
@Override
protected void controlRender(RenderManager rm, ViewPort vp) {
updateTargetsAndMaterials(spatial);
if (!wasMeshUpdated) {
updateTargetsAndMaterials(spatial);
// Prevent illegal cases. These should never happen.
assert hwSkinningTested || (!hwSkinningTested && !hwSkinningSupported && !hwSkinningEnabled);
assert !hwSkinningEnabled || (hwSkinningEnabled && hwSkinningTested && hwSkinningSupported);

Loading…
Cancel
Save