Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_tools.c
| Show First 20 Lines • Show All 548 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (TreeElement *, te, tree) { | ||||
| merged_element_search_fn_recursive(&te->subtree, tselem_type, type, str, items); | merged_element_search_fn_recursive(&te->subtree, tselem_type, type, str, items); | ||||
| } | } | ||||
| } | } | ||||
| /* Get a list of elements that match the search string */ | /* Get a list of elements that match the search string */ | ||||
| static void merged_element_search_update_fn(const bContext *UNUSED(C), | static void merged_element_search_update_fn(const bContext *UNUSED(C), | ||||
| void *data, | void *data, | ||||
| const char *str, | const char *str, | ||||
| uiSearchItems *items) | uiSearchItems *items, | ||||
| const bool UNUSED(is_first)) | |||||
| { | { | ||||
| MergedSearchData *search_data = (MergedSearchData *)data; | MergedSearchData *search_data = (MergedSearchData *)data; | ||||
| TreeElement *parent = search_data->parent_element; | TreeElement *parent = search_data->parent_element; | ||||
| TreeElement *te = search_data->select_element; | TreeElement *te = search_data->select_element; | ||||
| int type = tree_element_id_type_to_index(te); | int type = tree_element_id_type_to_index(te); | ||||
| merged_element_search_fn_recursive(&parent->subtree, TREESTORE(te)->type, type, str, items); | merged_element_search_fn_recursive(&parent->subtree, TREESTORE(te)->type, type, str, items); | ||||
| ▲ Show 20 Lines • Show All 2,322 Lines • Show Last 20 Lines | |||||