|
|
@ -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; |
|
|
|