fix T44884: Index counter for active UV Map used wrong offset
This commit is contained in:
parent
9876d1f299
commit
51bec8e22e
Notes:
blender-bot
2023-02-14 09:03:55 +01:00
Referenced by issue #44884, Collada: Last listed UV map not exported if "Only Selected Selected UV map" is checked.
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue