Commit cf1a56cb authored by cutealien's avatar cutealien

Add some debug-output when ogre-mesh fails loading because of wrong serializer number.

Probably something which will happen now a lot, would be nice if someone would update the ogre loader.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5242 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 453d24cf
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
// orginally written by Christian Stehno, modified by Nikolaus Gebhardt
// Originally written by Christian Stehno, modified by Nikolaus Gebhardt
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_OGRE_LOADER_
......@@ -131,7 +131,10 @@ IAnimatedMesh* COgreMeshFileLoader::createMesh(io::IReadFile* file)
ChunkData data;
readString(file, data, Version);
if ((Version != "[MeshSerializer_v1.30]") && (Version != "[MeshSerializer_v1.40]") && (Version != "[MeshSerializer_v1.41]"))
{
os::Printer::log("Unsupported ogre mesh version", Version.c_str(), ELL_INFORMATION);
return 0;
}
clearMeshes();
if (Mesh)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment