From 6485f8d486976bd5c3a1cf210887ea0134e0dcfe Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Thu, 23 Feb 2012 13:53:12 +0000 Subject: [PATCH] # OgreImporter: fix bool-to-int conversion warning. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1181 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/OgreImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }