OgreImporter: Format code and move commented verbose debug logging behind internal OGRE_BINARY_SERIALIZER_DEBUG. Thow deadly importer error on clear invlid mesh file errors.

This commit is contained in:
Jonne Nauha
2014-05-18 12:30:16 +03:00
parent 4b16b182be
commit 75598f69b7
3 changed files with 56 additions and 20 deletions

View File

@@ -328,6 +328,7 @@ Mesh::~Mesh()
void Mesh::Reset()
{
OGRE_SAFE_DELETE(sharedVertexData)
for(size_t i=0, len=subMeshes.size(); i<len; ++i) {
OGRE_SAFE_DELETE(subMeshes[i])
}