Nodes: Allow adding multiple search items per node type in add menu #104794

Merged
Hans Goudey merged 3 commits from HooglyBoogly/blender:node-add-search-items into main 2023-02-20 19:17:14 +01:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit f0fdb3f7da - Show all commits

View File

@ -359,6 +359,11 @@ typedef struct bNodeType {
*/
NodeGatherSocketLinkOperationsFunction gather_link_search_ops;
/**
HooglyBoogly marked this conversation as resolved
Review

Add comment.

Add comment.
* Add to the list of search items gathered by the add-node search. The default behavior of
* adding a single item with the node name is usually enough, but node types can have any number
* of custom search items.
*/
NodeGatherAddOperationsFunction gather_add_node_search_ops;
/** True when the node cannot be muted. */