Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/space_spreadsheet.cc
| Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Lines | switch (values.type()) { | ||||
| case SPREADSHEET_VALUE_TYPE_FLOAT3: | case SPREADSHEET_VALUE_TYPE_FLOAT3: | ||||
| return 3.0f * float_width; | return 3.0f * float_width; | ||||
| case SPREADSHEET_VALUE_TYPE_COLOR: | case SPREADSHEET_VALUE_TYPE_COLOR: | ||||
| return 4.0f * float_width; | return 4.0f * float_width; | ||||
| case SPREADSHEET_VALUE_TYPE_INSTANCES: | case SPREADSHEET_VALUE_TYPE_INSTANCES: | ||||
| return 8.0f; | return 8.0f; | ||||
| case SPREADSHEET_VALUE_TYPE_STRING: | case SPREADSHEET_VALUE_TYPE_STRING: | ||||
| return 5.0f; | return 5.0f; | ||||
| case SPREADSHEET_VALUE_TYPE_UNKNOWN: | |||||
| return 2.0f; | |||||
| } | } | ||||
| return float_width; | return float_width; | ||||
| } | } | ||||
| static float get_column_width(const ColumnValues &values) | static float get_column_width(const ColumnValues &values) | ||||
| { | { | ||||
| float data_width = get_default_column_width(values); | float data_width = get_default_column_width(values); | ||||
| const int fontid = UI_style_get()->widget.uifont_id; | const int fontid = UI_style_get()->widget.uifont_id; | ||||
| ▲ Show 20 Lines • Show All 366 Lines • Show Last 20 Lines | |||||