Commit da59ee30 authored by hybrid's avatar hybrid

Forgot the comment in last commit

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4469 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ecf8fe19
......@@ -195,6 +195,7 @@ bool COBJMeshWriter::writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 fla
file->write("map_Kd ", 7);
io::path tname = FileSystem->getRelativeFilename(mat[i]->getTexture(0)->getName(),
FileSystem->getFileDir(file->getFileName()));
// avoid blanks as .obj cannot handle strings with spaces
if (tname.findFirst(' ') != -1)
tname = FileSystem->getFileBasename(tname);
file->write(tname.c_str(), tname.size());
......
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