diff options
Diffstat (limited to 'source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc index f5a4f09a5a2..590fbfb5024 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc @@ -54,12 +54,12 @@ static void add_columns_for_instances(const InstancesComponent &instances_compon const InstancedData &data = instance_data[index]; if (data.type == INSTANCE_DATA_TYPE_OBJECT) { if (data.data.object != nullptr) { - r_cell_value.value = ObjectCellValue{data.data.object}; + r_cell_value.value_object = ObjectCellValue{data.data.object}; } } else if (data.type == INSTANCE_DATA_TYPE_COLLECTION) { if (data.data.collection != nullptr) { - r_cell_value.value = CollectionCellValue{data.data.collection}; + r_cell_value.value_collection = CollectionCellValue{data.data.collection}; } } })); @@ -71,7 +71,7 @@ static void add_columns_for_instances(const InstancesComponent &instances_compon std::string name = std::string("Position ") + axis_char[i]; columns.append(spreadsheet_column_from_function( name, [transforms, i](int index, CellValue &r_cell_value) { - r_cell_value.value = transforms[index].translation()[i]; + r_cell_value.value_float = transforms[index].translation()[i]; })); } @@ -79,7 +79,7 @@ static void add_columns_for_instances(const InstancesComponent &instances_compon std::string name = std::string("Rotation ") + axis_char[i]; columns.append(spreadsheet_column_from_function( name, [transforms, i](int index, CellValue &r_cell_value) { - r_cell_value.value = transforms[index].to_euler()[i]; + r_cell_value.value_float = transforms[index].to_euler()[i]; })); } @@ -87,7 +87,7 @@ static void add_columns_for_instances(const InstancesComponent &instances_compon std::string name = std::string("Scale ") + axis_char[i]; columns.append(spreadsheet_column_from_function( name, [transforms, i](int index, CellValue &r_cell_value) { - r_cell_value.value = transforms[index].scale()[i]; + r_cell_value.value_float = transforms[index].scale()[i]; })); } @@ -129,7 +129,7 @@ static void add_columns_for_attribute(const ReadAttribute *attribute, attribute_name, [attribute](int index, CellValue &r_cell_value) { float value; attribute->get(index, &value); - r_cell_value.value = value; + r_cell_value.value_float = value; })); break; } @@ -141,7 +141,7 @@ static void add_columns_for_attribute(const ReadAttribute *attribute, name, [attribute, i](int index, CellValue &r_cell_value) { float2 value; attribute->get(index, &value); - r_cell_value.value = value[i]; + r_cell_value.value_float = value[i]; })); } break; @@ -154,7 +154,7 @@ static void add_columns_for_attribute(const ReadAttribute *attribute, name, [attribute, i](int index, CellValue &r_cell_value) { float3 value; attribute->get(index, &value); - r_cell_value.value = value[i]; + r_cell_value.value_float = value[i]; })); } break; @@ -167,7 +167,7 @@ static void add_columns_for_attribute(const ReadAttribute *attribute, name, [attribute, i](int index, CellValue &r_cell_value) { Color4f value; attribute->get(index, &value); - r_cell_value.value = value[i]; + r_cell_value.value_float = value[i]; })); } break; @@ -177,7 +177,7 @@ static void add_columns_for_attribute(const ReadAttribute *attribute, attribute_name, [attribute](int index, CellValue &r_cell_value) { int value; attribute->get(index, &value); - r_cell_value.value = value; + r_cell_value.value_int = value; })); break; } @@ -186,7 +186,7 @@ static void add_columns_for_attribute(const ReadAttribute *attribute, attribute_name, [attribute](int index, CellValue &r_cell_value) { bool value; attribute->get(index, &value); - r_cell_value.value = value; + r_cell_value.value_bool = value; })); break; } |