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.
This commit is contained in:
parent
fad7121ca3
commit
17f37dcecc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue