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
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-10-27 16:34:28 +0300
committerJacques Lucke <jacques@blender.org>2021-10-27 16:34:28 +0300
commitc1936be0c5572d6c2b84ac934d6f907b7335375c (patch)
tree26a9dc89a404ba0b715a10f99a46c5f920cbdbad
parentcc6d5bc241fd453c361c42d50b3a8ca9058bbaee (diff)
Spreadsheet: use "id" instead of "ID" as column name
The lower case name is the internal name and will be exposed more to the user once we have instance attributes.
-rw-r--r--source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc b/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc
index f352a5fd0eb..bc6a8a48c3c 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc
@@ -388,7 +388,7 @@ void InstancesDataSource::foreach_default_column_ids(
SpreadsheetColumnID column_id;
column_id.name = (char *)"Name";
fn(column_id, false);
- for (const char *name : {"Position", "Rotation", "Scale", "ID"}) {
+ for (const char *name : {"Position", "Rotation", "Scale", "id"}) {
column_id.name = (char *)name;
fn(column_id, false);
}
@@ -467,7 +467,7 @@ std::unique_ptr<ColumnValues> InstancesDataSource::get_column_values(
}
Span<int> ids = component_->instance_ids();
if (!ids.is_empty()) {
- if (STREQ(column_id.name, "ID")) {
+ if (STREQ(column_id.name, "id")) {
/* Make the column a bit wider by default, since the IDs tend to be large numbers. */
return column_values_from_function(
SPREADSHEET_VALUE_TYPE_INT32,