diff --git a/code/OgreImporter.cpp b/code/OgreImporter.cpp index 68e9dd8ca..d45566ecf 100644 --- a/code/OgreImporter.cpp +++ b/code/OgreImporter.cpp @@ -419,7 +419,7 @@ void OgreImporter::ReadVertexBuffer(SubMesh &theSubMesh, XmlReader *Reader, unsi theSubMesh.NumUvs=0; else { - ReadUvs=theSubMesh.NumUvs=GetAttribute(Reader, "texture_coords"); + ReadUvs=!!(theSubMesh.NumUvs=GetAttribute(Reader, "texture_coords")); theSubMesh.Uvs.reserve(NumVertices); DefaultLogger::get()->debug("reading texture coords"); }