fix T44884: Index counter for active UV Map used wrong offset

This commit is contained in:
2015-05-29 16:19:56 +02:00
parent 9876d1f299
commit 51bec8e22e

View File

@@ -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) {