Spreadsheet: rename Point to Vertex

Ref T86821.

Differential Revision: https://developer.blender.org/D10962
This commit is contained in:
Jacques Lucke 2021-04-13 14:49:00 +02:00
parent 7cbd66d42f
commit 1f2a801044
Notes: blender-bot 2023-02-14 07:39:46 +01:00
Referenced by issue #86821, Agree on point or vertex for domain name
1 changed files with 9 additions and 1 deletions

View File

@ -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);