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
This commit is contained in:
parent
bd9f389108
commit
44a77537ce
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user