* Fix crash when loading animated OgreXML model exported from blender2ogre 0.5.7

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9495 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent 5730bf67d8
commit 8cf238a262
  1. 7
      engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java

@ -697,11 +697,14 @@ public class MeshLoader extends DefaultHandler implements AssetLoader {
return; return;
} }
if (qName.equals("submesh")) {
// If submesh hack is enabled, ignore any submesh/submeshes
// end tags.
if (qName.equals("submesh") && !submeshNamesHack) {
usesBigIndices = false; usesBigIndices = false;
geom = null; geom = null;
mesh = null; mesh = null;
} else if (qName.equals("submeshes")) { } else if (qName.equals("submeshes") && !submeshNamesHack) {
// IMPORTANT: restore sharedmesh, for use with shared boneweights // IMPORTANT: restore sharedmesh, for use with shared boneweights
geom = null; geom = null;
mesh = sharedMesh; mesh = sharedMesh;

Loading…
Cancel
Save