|
|
@ -289,6 +289,7 @@ public class SkeletonControl extends AbstractControl implements Cloneable { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void controlRender(RenderManager rm, ViewPort vp) { |
|
|
|
protected void controlRender(RenderManager rm, ViewPort vp) { |
|
|
|
|
|
|
|
updateTargetsAndMaterials(spatial); |
|
|
|
if (!wasMeshUpdated) { |
|
|
|
if (!wasMeshUpdated) { |
|
|
|
// Prevent illegal cases. These should never happen.
|
|
|
|
// Prevent illegal cases. These should never happen.
|
|
|
|
assert hwSkinningTested || (!hwSkinningTested && !hwSkinningSupported && !hwSkinningEnabled); |
|
|
|
assert hwSkinningTested || (!hwSkinningTested && !hwSkinningSupported && !hwSkinningEnabled); |
|
|
@ -326,7 +327,6 @@ public class SkeletonControl extends AbstractControl implements Cloneable { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void controlUpdate(float tpf) { |
|
|
|
protected void controlUpdate(float tpf) { |
|
|
|
wasMeshUpdated = false; |
|
|
|
wasMeshUpdated = false; |
|
|
|
updateTargetsAndMaterials(spatial); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//only do this for software updates
|
|
|
|
//only do this for software updates
|
|
|
|