From 44a77537ce99b395d8dab1533868918476b023b5 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Wed, 17 Apr 2013 17:17:58 +0000 Subject: [PATCH] Fixed HWSkinning initialization that was not properly falling back to software when HW skinning was not available Still not a functional implementation git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10547 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/animation/SkeletonControl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() {