From 4ddddbc381726195a4453ab4b32f56dc236d961a Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Fri, 22 Apr 2011 19:43:18 +0000 Subject: [PATCH] # Blend: fix loading of UV coordinates for models older than Blender 2.42 git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@966 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/BlenderLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/BlenderLoader.cpp b/code/BlenderLoader.cpp index d357177ac..67c218915 100644 --- a/code/BlenderLoader.cpp +++ b/code/BlenderLoader.cpp @@ -790,7 +790,7 @@ void BlenderImporter::ConvertMesh(const Scene& in, const Object* obj, const Mesh // collect texture coordinates, old-style (marked as deprecated in current blender sources) if (mesh->tface) { - if (mesh->totface > static_cast ( mesh->mtface.size())) { + if (mesh->totface > static_cast ( mesh->tface.size())) { ThrowException("Number of faces is larger than the corresponding UV face array (#2)"); } for (std::vector::iterator it = temp->begin()+old; it != temp->end(); ++it) {