diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-12-19 23:40:52 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-12-19 23:40:52 +0300 |
commit | 17f37dceccb99d7eb58f7c29908eeb2bd87cd7ff (patch) | |
tree | 9e8ea21684a19d6093c5e46ee086d0f500490ef7 /source/blender/collada | |
parent | fad7121ca3bf150aeb1753873969778391629e0c (diff) |
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.
Diffstat (limited to 'source/blender/collada')
-rw-r--r-- | source/blender/collada/MeshImporter.cpp | 4 |
1 files changed, 1 insertions, 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 |