diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-08-16 02:08:22 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-08-16 02:08:22 +0400 |
commit | 417e99df22241d05179671d2f7198343c60d118b (patch) | |
tree | d19042686b74706ea03d79bb5088ac1a2f4a4d66 /source/blender/collada/InstanceWriter.cpp | |
parent | 597e6f9bbc7bf08150e81356f734b33c5e05ce68 (diff) |
Collada: fixed export when 'active UV Layer only' was selected
Diffstat (limited to 'source/blender/collada/InstanceWriter.cpp')
-rw-r--r-- | source/blender/collada/InstanceWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/collada/InstanceWriter.cpp b/source/blender/collada/InstanceWriter.cpp index be45d5295e5..71371d280df 100644 --- a/source/blender/collada/InstanceWriter.cpp +++ b/source/blender/collada/InstanceWriter.cpp @@ -63,7 +63,7 @@ void InstanceWriter::add_material_bindings(COLLADASW::BindMaterial& bind_materia int active_uv_index = CustomData_get_active_layer_index(&me->fdata, CD_MTFACE) -1; for (int b = 0; b < totlayer; b++) { if (!active_uv_only || b == active_uv_index) { - char *name = bc_CustomData_get_layer_name(&me->fdata, CD_MTFACE, map_index); + char *name = bc_CustomData_get_layer_name(&me->fdata, CD_MTFACE, b); im.push_back(COLLADASW::BindVertexInput(name, "TEXCOORD", map_index++)); } } |