Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-04-13 15:49:00 +0300
committerJacques Lucke <jacques@blender.org>2021-04-13 15:49:00 +0300
commit1f2a801044ac77a5371fbea3bdc2cf3c4258954f (patch)
tree050084f03f8bbc182d8091c8e47c9abe0eb605df /source
parent7cbd66d42fb3f43b26f7dbea61f182f00987eafb (diff)
Spreadsheet: rename Point to Vertex
Ref T86821. Differential Revision: https://developer.blender.org/D10962
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_space.c10
1 files changed, 9 insertions, 1 deletions
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);