Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_tools.c
| Show First 20 Lines • Show All 511 Lines • ▼ Show 20 Lines | |||||
| } MergedSearchData; | } MergedSearchData; | ||||
| static void merged_element_search_cb_recursive( | static void merged_element_search_cb_recursive( | ||||
| const ListBase *tree, short tselem_type, short type, const char *str, uiSearchItems *items) | const ListBase *tree, short tselem_type, short type, const char *str, uiSearchItems *items) | ||||
| { | { | ||||
| char name[64]; | char name[64]; | ||||
| int iconid; | int iconid; | ||||
| for (TreeElement *te = tree->first; te; te = te->next) { | LISTBASE_FOREACH (TreeElement *, te, tree) { | ||||
| TreeStoreElem *tselem = TREESTORE(te); | TreeStoreElem *tselem = TREESTORE(te); | ||||
| if (tree_element_id_type_to_index(te) == type && tselem_type == tselem->type) { | if (tree_element_id_type_to_index(te) == type && tselem_type == tselem->type) { | ||||
| if (BLI_strcasestr(te->name, str)) { | if (BLI_strcasestr(te->name, str)) { | ||||
| BLI_strncpy(name, te->name, 64); | BLI_strncpy(name, te->name, 64); | ||||
| iconid = tree_element_get_icon(tselem, te).icon; | iconid = tree_element_get_icon(tselem, te).icon; | ||||
| ▲ Show 20 Lines • Show All 1,967 Lines • Show Last 20 Lines | |||||