Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_layout.c
| Show First 20 Lines • Show All 5,161 Lines • ▼ Show 20 Lines | |||||
| * \note Must not be run after #UI_block_layout_resolve. | * \note Must not be run after #UI_block_layout_resolve. | ||||
| */ | */ | ||||
| bool UI_block_apply_search_filter(uiBlock *block, const char *search_filter) | bool UI_block_apply_search_filter(uiBlock *block, const char *search_filter) | ||||
| { | { | ||||
| if (search_filter == NULL || search_filter[0] == '\0') { | if (search_filter == NULL || search_filter[0] == '\0') { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (block->panel && block->panel->type && block->panel->type->flag & PNL_NO_SEARCH) { | |||||
| return false; | |||||
| } | |||||
| const bool panel_label_matches = block_search_panel_label_matches(block, search_filter); | const bool panel_label_matches = block_search_panel_label_matches(block, search_filter); | ||||
| const bool has_result = (panel_label_matches) ? | const bool has_result = (panel_label_matches) ? | ||||
| true : | true : | ||||
| block_search_filter_tag_buttons(block, search_filter); | block_search_filter_tag_buttons(block, search_filter); | ||||
| if (block->panel != NULL) { | if (block->panel != NULL) { | ||||
| if (has_result) { | if (has_result) { | ||||
| ▲ Show 20 Lines • Show All 764 Lines • Show Last 20 Lines | |||||