Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_utils.c
| Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | |||||
| float outliner_restrict_columns_width(const SpaceOutliner *space_outliner) | float outliner_restrict_columns_width(const SpaceOutliner *space_outliner) | ||||
| { | { | ||||
| int num_columns = 0; | int num_columns = 0; | ||||
| switch (space_outliner->outlinevis) { | switch (space_outliner->outlinevis) { | ||||
| case SO_DATA_API: | case SO_DATA_API: | ||||
| case SO_SEQUENCE: | case SO_SEQUENCE: | ||||
| case SO_LIBRARIES: | case SO_LIBRARIES: | ||||
| case SO_OVERRIDES_LIBRARY: | |||||
| return 0.0f; | return 0.0f; | ||||
| case SO_ID_ORPHANS: | case SO_ID_ORPHANS: | ||||
| num_columns = 3; | num_columns = 3; | ||||
| break; | break; | ||||
| case SO_VIEW_LAYER: | case SO_VIEW_LAYER: | ||||
| if (space_outliner->show_restrict_flags & SO_RESTRICT_ENABLE) { | if (space_outliner->show_restrict_flags & SO_RESTRICT_ENABLE) { | ||||
| num_columns++; | num_columns++; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines | |||||