[reporter="jessome", created="Thu, 28 Nov 2013 14:55:47 +0100"]
In my project I'm using a skeleton with linked animations. When reading in the .skeleton file OgreSkeletonSerializer manages to add a blank entry to the end of the list of linked animations. This (eventually) trips an exception during resource loading when trying to load this animation clip with an empty name.
Steps to reproduce:
-Take a skeleton.xml with a list of linked animations (perhaps only one is sufficient)
-Convert it to .skeleton with OgreXMLConverter
-Convert back to .xml with OgreXMLConverter, you will now have a new garbage entry at the end if your list.
This issue is especially frustrating to debug because it is not reproducible in RelWithDebInfo or Debug. This only happens in Release.
I feel the root of the issue may be with the linked animations are serialized. They have 3 pieces of information: type, name, scale. But the name has a newline appended to it, pushing scale onto the next line. The links are the last section of the file, so, when reading the last line ...
该提问来源于开源项目:OGRECave/ogre