From 17f37dceccb99d7eb58f7c29908eeb2bd87cd7ff Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Sun, 19 Dec 2010 20:40:52 +0000 Subject: [PATCH] Apply [#25297] Fix for [#23765] Bug reported by alarionfirn Patch submitted by Jeroen Bakker It took the read the N+N of the uv-layer, it should be the Nth uv layer. --- source/blender/collada/MeshImporter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/blender/collada/MeshImporter.cpp b/source/blender/collada/MeshImporter.cpp index be7abc3ec4e..ddad0903e66 100644 --- a/source/blender/collada/MeshImporter.cpp +++ b/source/blender/collada/MeshImporter.cpp @@ -500,10 +500,8 @@ void MeshImporter::read_faces(COLLADAFW::Mesh *mesh, Mesh *me, int new_tris) } #else for (k = 0; k < index_list_array.getCount(); k++) { - int uvset_index = index_list_array[k]->getSetIndex(); - // get mtface by face index and uv set index - MTFace *mtface = (MTFace*)CustomData_get_layer_n(&me->fdata, CD_MTFACE, uvset_index); + MTFace *mtface = (MTFace*)CustomData_get_layer_n(&me->fdata, CD_MTFACE, k); set_face_uv(&mtface[face_index], uvs, *index_list_array[k], index, false); } #endif