Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_select.c
| Show First 20 Lines • Show All 1,172 Lines • ▼ Show 20 Lines | else { | ||||
| BLI_strncpy(str, node->name, maxlen); | BLI_strncpy(str, node->name, maxlen); | ||||
| } | } | ||||
| } | } | ||||
| /* generic search invoke */ | /* generic search invoke */ | ||||
| static void node_find_update_fn(const struct bContext *C, | static void node_find_update_fn(const struct bContext *C, | ||||
| void *UNUSED(arg), | void *UNUSED(arg), | ||||
| const char *str, | const char *str, | ||||
| uiSearchItems *items) | uiSearchItems *items, | ||||
| const bool UNUSED(is_first)) | |||||
| { | { | ||||
| SpaceNode *snode = CTX_wm_space_node(C); | SpaceNode *snode = CTX_wm_space_node(C); | ||||
| StringSearch *search = BLI_string_search_new(); | StringSearch *search = BLI_string_search_new(); | ||||
| LISTBASE_FOREACH (bNode *, node, &snode->edittree->nodes) { | LISTBASE_FOREACH (bNode *, node, &snode->edittree->nodes) { | ||||
| char name[256]; | char name[256]; | ||||
| node_find_create_label(node, name, ARRAY_SIZE(name)); | node_find_create_label(node, name, ARRAY_SIZE(name)); | ||||
| ▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines | |||||