diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2015-05-29 17:19:56 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2015-05-29 17:20:33 +0300 |
commit | 51bec8e22e3b6ac763b84c41c206f9a3a022e5e0 (patch) | |
tree | bad5424eb18f024c68bbbbf41aaaf0803daf3b02 /source/blender/collada | |
parent | 9876d1f299541752ceb8c685c7fe962e9151e1c2 (diff) |
fix T44884: Index counter for active UV Map used wrong offset
Diffstat (limited to 'source/blender/collada')
-rw-r--r-- | source/blender/collada/GeometryExporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/collada/GeometryExporter.cpp b/source/blender/collada/GeometryExporter.cpp index a0eddadfe78..4dd6bb79803 100644 --- a/source/blender/collada/GeometryExporter.cpp +++ b/source/blender/collada/GeometryExporter.cpp @@ -530,7 +530,7 @@ void GeometryExporter::createTexcoordsSource(std::string geom_id, Mesh *me) // write <source> for each layer // each <source> will get id like meshName + "map-channel-1" - int active_uv_index = CustomData_get_active_layer_index(&me->ldata, CD_MLOOPUV); + int active_uv_index = CustomData_get_active_layer_index(&me->ldata, CD_MLOOPUV) -1; for (int a = 0; a < num_layers; a++) { if (!this->export_settings->active_uv_only || a == active_uv_index) { |