[Bf-blender-cvs] [1f2a801044a] master: Spreadsheet: rename Point to Vertex
Jacques Lucke
noreply at git.blender.org
Tue Apr 13 14:49:08 CEST 2021
Commit: 1f2a801044ac77a5371fbea3bdc2cf3c4258954f
Author: Jacques Lucke
Date: Tue Apr 13 14:49:00 2021 +0200
Branches: master
https://developer.blender.org/rB1f2a801044ac77a5371fbea3bdc2cf3c4258954f
Spreadsheet: rename Point to Vertex
Ref T86821.
Differential Revision: https://developer.blender.org/D10962
===================================================================
M source/blender/makesrna/intern/rna_space.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list