From e4478dc65cbb03ae1a96c9ce82cf3341b3006474 Mon Sep 17 00:00:00 2001 From: "Sha..om" Date: Mon, 29 Apr 2013 17:14:58 +0000 Subject: [PATCH] * 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 --- engine/src/core/com/jme3/animation/SkeletonControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/animation/SkeletonControl.java b/engine/src/core/com/jme3/animation/SkeletonControl.java index 9af184db7..bf4f43e77 100644 --- a/engine/src/core/com/jme3/animation/SkeletonControl.java +++ b/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);