diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-25 07:54:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-25 09:45:47 +0300 |
commit | 7585d47b364aff4f486b7c085611859493014ac7 (patch) | |
tree | 99e6b2c21b24267c630badce650af6c282c5a2c9 /source/blender/makesrna/intern/rna_mesh.c | |
parent | 5572986aad22811af9e3c34992fdd40251c106ab (diff) |
Cleanup: remove UV name syncing function
MTFace's on the mesh are now only used for conversion.
There is no need to keep both UV layers in sync at once.
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index cfffa3bf4e3..81480eda4d6 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -651,14 +651,6 @@ static void rna_MPoly_freestyle_face_mark_set(PointerRNA *ptr, int value) } } -/* Generic UV rename! */ -static void rna_MeshUVLayer_name_set(PointerRNA *ptr, const char *name) -{ - char buf[MAX_CUSTOMDATA_LAYER_NAME]; - BLI_strncpy_utf8(buf, name, MAX_CUSTOMDATA_LAYER_NAME); - BKE_mesh_uv_cdlayer_rename(rna_mesh(ptr), ((CustomDataLayer *)ptr->data)->name, buf, true); -} - /* uv_layers */ DEFINE_CUSTOMDATA_LAYER_COLLECTION(uv_layer, ldata, CD_MLOOPUV) @@ -1941,7 +1933,7 @@ static void rna_def_mloopuv(BlenderRNA *brna) prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); RNA_def_struct_name_property(srna, prop); - RNA_def_property_string_funcs(prop, NULL, NULL, "rna_MeshUVLayer_name_set"); + RNA_def_property_string_funcs(prop, NULL, NULL, "rna_MeshLoopLayer_name_set"); RNA_def_property_ui_text(prop, "Name", "Name of UV map"); RNA_def_property_update(prop, 0, "rna_Mesh_update_data"); |