Upgrade for the add_search node operator. This now uses the same basic system as the regular add_node operator, with enum items generated from the common node categories system (nodeitems_utils module). This means that any node listed in the regular node Add menu can now also be added via searching, including node groups and the like. The search operator also uses the subsequent transform to make insertion a bit more streamlined.
This commit is contained in:
@@ -117,6 +117,7 @@ class NODE_MT_add(bpy.types.Menu):
|
||||
|
||||
layout.operator_context = 'INVOKE_DEFAULT'
|
||||
op = layout.operator("node.add_search", text="Search ...")
|
||||
op.use_transform = True
|
||||
|
||||
# actual node submenus are added by draw functions from node categories
|
||||
|
||||
|
Reference in New Issue
Block a user