[Bf-blender-cvs] [c1936be0c55] master: Spreadsheet: use "id" instead of "ID" as column name
Jacques Lucke
noreply at git.blender.org
Wed Oct 27 15:34:58 CEST 2021
Commit: c1936be0c5572d6c2b84ac934d6f907b7335375c
Author: Jacques Lucke
Date: Wed Oct 27 15:34:28 2021 +0200
Branches: master
https://developer.blender.org/rBc1936be0c5572d6c2b84ac934d6f907b7335375c
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.
===================================================================
M source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc
===================================================================
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,
More information about the Bf-blender-cvs
mailing list