[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58829] trunk/blender/source/blender/ collada/MeshImporter.cpp: fix(Collada): wrong usage of the set attribute with multiple UV sets
Gaia Clary
gaia.clary at machinimatrix.org
Fri Aug 2 17:58:11 CEST 2013
Revision: 58829
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58829
Author: gaiaclary
Date: 2013-08-02 15:58:11 +0000 (Fri, 02 Aug 2013)
Log Message:
-----------
fix(Collada): wrong usage of the set attribute with multiple UV sets
Modified Paths:
--------------
trunk/blender/source/blender/collada/MeshImporter.cpp
Modified: trunk/blender/source/blender/collada/MeshImporter.cpp
===================================================================
--- trunk/blender/source/blender/collada/MeshImporter.cpp 2013-08-02 14:40:21 UTC (rev 58828)
+++ trunk/blender/source/blender/collada/MeshImporter.cpp 2013-08-02 15:58:11 UTC (rev 58829)
@@ -618,13 +618,10 @@
set_poly_indices(mpoly, mloop, loop_index, position_indices, vcount);
- for (unsigned int l = 0; l < index_list_array.getCount(); l++) {
- int uvset_index = index_list_array[l]->getSetIndex();
-
+ for (unsigned int uvset_index = 0; uvset_index < index_list_array.getCount(); uvset_index++) {
// get mtface by face index and uv set index
MLoopUV *mloopuv = (MLoopUV *)CustomData_get_layer_n(&me->ldata, CD_MLOOPUV, uvset_index);
-
- set_face_uv(mloopuv+loop_index, uvs, start_index, *index_list_array[l], vcount);
+ set_face_uv(mloopuv+loop_index, uvs, start_index, *index_list_array[uvset_index], vcount);
}
if (mp_has_normals) {
More information about the Bf-blender-cvs
mailing list