From 1f2a801044ac77a5371fbea3bdc2cf3c4258954f Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 13 Apr 2021 14:49:00 +0200 Subject: Spreadsheet: rename Point to Vertex Ref T86821. Differential Revision: https://developer.blender.org/D10962 --- source/blender/makesrna/intern/rna_space.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index aac9fd2d59e..2af8a58c137 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -3077,6 +3077,9 @@ const EnumPropertyItem *rna_SpaceSpreadsheet_attribute_domain_itemf(bContext *C, } } + static EnumPropertyItem mesh_vertex_domain_item = { + ATTR_DOMAIN_POINT, "POINT", 0, "Vertex", "Attribute per point/vertex"}; + EnumPropertyItem *item_array = NULL; int items_len = 0; for (const EnumPropertyItem *item = rna_enum_attribute_domain_items; item->identifier != NULL; @@ -3095,7 +3098,12 @@ const EnumPropertyItem *rna_SpaceSpreadsheet_attribute_domain_itemf(bContext *C, continue; } } - RNA_enum_item_add(&item_array, &items_len, item); + if (item->value == ATTR_DOMAIN_POINT && component_type == GEO_COMPONENT_TYPE_MESH) { + RNA_enum_item_add(&item_array, &items_len, &mesh_vertex_domain_item); + } + else { + RNA_enum_item_add(&item_array, &items_len, item); + } } RNA_enum_item_end(&item_array, &items_len); -- cgit v1.2.3