When converting a binary jme file to xml I noticed some empty
texturecoords nodes were being written for each geometric entity.
Tracing backwards I found that the issue originated in
com.jme.scene.model.XMLparser.JmeBinaryWriter
starting at line 666. If a check is made to ensure that the texturecoords
attributes contains any elements before writing the tag out, this issue is
resolved.
Change lines 666 and 667 from:
writeTag("texturecoords",atts);
writeEndTag("texturecoords");
to:
if(atts.size() > 0)
{
writeTag("texturecoords",atts);
writeEndTag("texturecoords");
}
Thanks again!