From edfef62371d5b111c7ae4bc4f6f3da2253decdc9 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Fri, 16 Dec 2022 09:47:21 +0900 Subject: [PATCH] Fix T103183: UV map name of mesh converted from curve is untranslated Upon conversion, the newly-created UV map with default name "UVMap" should be translated. Reviewed By: mont29 Maniphest Tasks: T103183 Differential Revision: https://developer.blender.org/D16775 --- source/blender/blenkernel/intern/mesh_convert.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/mesh_convert.cc b/source/blender/blenkernel/intern/mesh_convert.cc index 7a4c3c0834b..db4d6396c92 100644 --- a/source/blender/blenkernel/intern/mesh_convert.cc +++ b/source/blender/blenkernel/intern/mesh_convert.cc @@ -26,6 +26,8 @@ #include "BLI_string.h" #include "BLI_utildefines.h" +#include "BLT_translation.h" + #include "BKE_DerivedMesh.h" #include "BKE_curves.hh" #include "BKE_deform.h" @@ -199,7 +201,7 @@ static Mesh *mesh_nurbs_displist_to_mesh(const Curve *cu, const ListBase *dispba SpanAttributeWriter material_indices = attributes.lookup_or_add_for_write_only_span( "material_index", ATTR_DOMAIN_FACE); MLoopUV *mloopuv = static_cast(CustomData_add_layer_named( - &mesh->ldata, CD_MLOOPUV, CD_SET_DEFAULT, nullptr, mesh->totloop, "UVMap")); + &mesh->ldata, CD_MLOOPUV, CD_SET_DEFAULT, nullptr, mesh->totloop, DATA_("UVMap"))); /* verts and faces */ vertcount = 0;