Explorar el Código

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

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1181 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg hace 13 años
padre
commit
6485f8d486
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      code/OgreImporter.cpp

+ 1 - 1
code/OgreImporter.cpp

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