fix T60049: Collada Exporter: When exporting multiple UVs, the set index must start...
authorGaia Clary <gaia.clary@machinimatrix.org>
Thu, 10 Jan 2019 12:15:09 +0000 (13:15 +0100)
committerGaia Clary <gaia.clary@machinimatrix.org>
Thu, 10 Jan 2019 12:15:20 +0000 (13:15 +0100)
source/blender/collada/GeometryExporter.cpp

index bb69c3fc653a021c9fc06d6647be3e227ed29c7a..8ba9f10568a02c714c9b4f7c3422b0d379875887 100644 (file)
@@ -356,7 +356,7 @@ void GeometryExporter::createPolylist(short material_index,
                        COLLADASW::Input input3(COLLADASW::InputSemantic::TEXCOORD,
                                                                        makeUrl(makeTexcoordSourceId(geom_id, i, this->export_settings->active_uv_only)),
                                                                        2, // this is only until we have optimized UV sets
-                                                                       (this->export_settings->active_uv_only) ? 0 : layer_index  // only_active_uv exported -> we have only one set
+                                                                       (this->export_settings->active_uv_only) ? 0 : layer_index-1  //set (0,1,2,...)
                                                                        );
                        til.push_back(input3);
                }