fix: (unreported) When converting nurbs or curves to Mesh the generated UVMap is now named 'UVMap'

This commit is contained in:
Gaia Clary 2019-09-14 23:16:38 +02:00
parent e9c18ea982
commit e2df789c48
Notes: blender-bot 2023-02-14 06:00:45 +01:00
Referenced by issue #69911, Adaptive displacement off-screen culling/dicing and camera shift.
Referenced by issue #69899, Blender 2.81 baking soft body physics crashes in weight/vertex paint or sculpt mode
Referenced by issue #69900, Simple deform modifier - bend seems broken 2.80, 2.81
1 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@ Mesh *BKE_mesh_new_nomain_from_curve_displist(Object *ob, ListBase *dispbase)
memcpy(mesh->mpoly, allpoly, totpoly * sizeof(MPoly));
if (alluv) {
const char *uvname = "Orco";
const char *uvname = "UVMap";
CustomData_add_layer_named(&mesh->ldata, CD_MLOOPUV, CD_ASSIGN, alluv, totloop, uvname);
}
@ -635,7 +635,7 @@ void BKE_mesh_from_nurbs_displist(Main *bmain,
me->mpoly = CustomData_add_layer(&me->pdata, CD_MPOLY, CD_ASSIGN, allpoly, me->totpoly);
if (alluv) {
const char *uvname = "Orco";
const char *uvname = "UVMap";
me->mloopuv = CustomData_add_layer_named(
&me->ldata, CD_MLOOPUV, CD_ASSIGN, alluv, me->totloop, uvname);
}