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);