# OgreImporter: fix bool-to-int conversion warning.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1181 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/5/head
aramis_acg 2012-02-23 13:53:12 +00:00
parent 8e5a2ad464
commit 6485f8d486
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ void OgreImporter::ReadVertexBuffer(SubMesh &theSubMesh, XmlReader *Reader, unsi
theSubMesh.NumUvs=0; theSubMesh.NumUvs=0;
else else
{ {
ReadUvs=theSubMesh.NumUvs=GetAttribute<int>(Reader, "texture_coords"); ReadUvs=!!(theSubMesh.NumUvs=GetAttribute<int>(Reader, "texture_coords"));
theSubMesh.Uvs.reserve(NumVertices); theSubMesh.Uvs.reserve(NumVertices);
DefaultLogger::get()->debug("reading texture coords"); DefaultLogger::get()->debug("reading texture coords");
} }