diff --git a/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java b/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java index 2fc898a8e..d9ea6785f 100644 --- a/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java +++ b/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java @@ -344,7 +344,7 @@ public class MeshLoader extends DefaultHandler implements AssetLoader { if (sum != 1f) { weightsFloatData.position(weightsFloatData.position() - 4); // compute new vals based on sum - float sumToB = 1f / sum; + float sumToB = sum == 0 ? 0 : 1f / sum; weightsFloatData.put(w0 * sumToB); weightsFloatData.put(w1 * sumToB); weightsFloatData.put(w2 * sumToB);