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:
Lukas Toenne
2013-05-09 11:43:48 +00:00
parent 2e0f741d01
commit 56485b6562
3 changed files with 55 additions and 66 deletions

View File

@@ -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