[Bf-blender-cvs] [e2df789c480] master: fix: (unreported) When converting nurbs or curves to Mesh the generated UVMap is now named 'UVMap'
Gaia Clary
noreply at git.blender.org
Sat Sep 14 23:16:55 CEST 2019
Commit: e2df789c4800565ab54ad5356e74b274634467c2
Author: Gaia Clary
Date: Sat Sep 14 23:16:38 2019 +0200
Branches: master
https://developer.blender.org/rBe2df789c4800565ab54ad5356e74b274634467c2
fix: (unreported) When converting nurbs or curves to Mesh the generated UVMap is now named 'UVMap'
===================================================================
M source/blender/blenkernel/intern/mesh_convert.c
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh_convert.c b/source/blender/blenkernel/intern/mesh_convert.c
index 0a991ee36c8..bcf5cb56f06 100644
--- a/source/blender/blenkernel/intern/mesh_convert.c
+++ b/source/blender/blenkernel/intern/mesh_convert.c
@@ -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);
}
More information about the Bf-blender-cvs
mailing list