Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_tree.c
| Show First 20 Lines • Show All 2,016 Lines • ▼ Show 20 Lines | case SO_FILTER_OB_HIDDEN: | ||||
| exclude_filter |= SO_FILTER_OB_STATE_HIDDEN; | exclude_filter |= SO_FILTER_OB_STATE_HIDDEN; | ||||
| break; | break; | ||||
| case SO_FILTER_OB_SELECTED: | case SO_FILTER_OB_SELECTED: | ||||
| exclude_filter |= SO_FILTER_OB_STATE_SELECTED; | exclude_filter |= SO_FILTER_OB_STATE_SELECTED; | ||||
| break; | break; | ||||
| case SO_FILTER_OB_ACTIVE: | case SO_FILTER_OB_ACTIVE: | ||||
| exclude_filter |= SO_FILTER_OB_STATE_ACTIVE; | exclude_filter |= SO_FILTER_OB_STATE_ACTIVE; | ||||
| break; | break; | ||||
| case SO_FILTER_OB_UNSELECTABLE: | |||||
| exclude_filter |= SO_FILTER_OB_STATE_UNSELECTABLE; | |||||
| break; | |||||
| } | } | ||||
| return exclude_filter; | return exclude_filter; | ||||
| } | } | ||||
| static bool outliner_element_visible_get(ViewLayer *view_layer, | static bool outliner_element_visible_get(ViewLayer *view_layer, | ||||
| TreeElement *te, | TreeElement *te, | ||||
| const int exclude_filter) | const int exclude_filter) | ||||
| ▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | if (exclude_filter & SO_FILTER_OB_STATE) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| else if (exclude_filter & SO_FILTER_OB_STATE_SELECTED) { | else if (exclude_filter & SO_FILTER_OB_STATE_SELECTED) { | ||||
| if ((base->flag & BASE_SELECTED) == 0) { | if ((base->flag & BASE_SELECTED) == 0) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| else if (exclude_filter & SO_FILTER_OB_STATE_UNSELECTABLE) { | |||||
| if ((base->flag & BASE_SELECTABLE) != 0) { | |||||
| return false; | |||||
| } | |||||
| } | |||||
| else { | else { | ||||
| BLI_assert(exclude_filter & SO_FILTER_OB_STATE_ACTIVE); | BLI_assert(exclude_filter & SO_FILTER_OB_STATE_ACTIVE); | ||||
| if (base != BASACT(view_layer)) { | if (base != BASACT(view_layer)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines | |||||