Merge branch 'blender-v4.5-release'
This commit is contained in:
@@ -484,8 +484,9 @@ static void spreadsheet_main_region_draw(const bContext *C, ARegion *region)
|
||||
continue;
|
||||
}
|
||||
const ColumnValues *values = scope.add(std::move(values_ptr));
|
||||
const eSpreadsheetColumnValueType column_type = values->type();
|
||||
|
||||
if (column->width <= 0.0f) {
|
||||
if (column->width <= 0.0f || column_type != column->data_type) {
|
||||
column->width = values->fit_column_width_px(100) / SPREADSHEET_WIDTH_UNIT;
|
||||
}
|
||||
const int width_in_pixels = column->width * SPREADSHEET_WIDTH_UNIT;
|
||||
@@ -495,7 +496,7 @@ static void spreadsheet_main_region_draw(const bContext *C, ARegion *region)
|
||||
x += width_in_pixels;
|
||||
column->runtime->right_x = x;
|
||||
|
||||
spreadsheet_column_assign_runtime_data(column, values->type(), values->name());
|
||||
spreadsheet_column_assign_runtime_data(column, column_type, values->name());
|
||||
}
|
||||
|
||||
spreadsheet_layout.row_indices = spreadsheet_filter_rows(
|
||||
|
||||
Reference in New Issue
Block a user