* 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
This commit is contained in:
parent
5730bf67d8
commit
8cf238a262
@ -697,11 +697,14 @@ public class MeshLoader extends DefaultHandler implements AssetLoader {
|
||||
return;
|
||||
}
|
||||
|
||||
if (qName.equals("submesh")) {
|
||||
|
||||
// If submesh hack is enabled, ignore any submesh/submeshes
|
||||
// end tags.
|
||||
if (qName.equals("submesh") && !submeshNamesHack) {
|
||||
usesBigIndices = false;
|
||||
geom = null;
|
||||
mesh = null;
|
||||
} else if (qName.equals("submeshes")) {
|
||||
} else if (qName.equals("submeshes") && !submeshNamesHack) {
|
||||
// IMPORTANT: restore sharedmesh, for use with shared boneweights
|
||||
geom = null;
|
||||
mesh = sharedMesh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user