diff --git a/engine/src/core/com/jme3/animation/SkeletonControl.java b/engine/src/core/com/jme3/animation/SkeletonControl.java index ed23764b4..ca099bd80 100644 --- a/engine/src/core/com/jme3/animation/SkeletonControl.java +++ b/engine/src/core/com/jme3/animation/SkeletonControl.java @@ -120,6 +120,7 @@ public class SkeletonControl extends AbstractControl implements Cloneable { } catch (java.lang.IllegalArgumentException e) { Logger.getLogger(SkeletonControl.class.getName()).log(Level.INFO, "{0} material doesn't support Hardware Skinning reverting to software", new String[]{m.getName()}); setUseHwSkinning(false); + return; } } else { if (m.getParam("NumberOfBones") != null) { @@ -133,8 +134,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable { mesh.prepareForAnim(!useHwSkinning); // prepare for software animation } } - if (useHwSkinning) { - } } public boolean isUseHwSkinning() {