Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-05-09 15:43:48 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-05-09 15:43:48 +0400
commit56485b6562ee349513e5de4ac450150f569a230d (patch)
tree61e8a666fda5c5e13ce301b731d3687d062ec87c /release/scripts/startup/bl_ui/space_node.py
parent2e0f741d0190d60243d8ace131ffcd7f3b620f63 (diff)
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.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_node.py')
-rw-r--r--release/scripts/startup/bl_ui/space_node.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index f58679e836d..86d53648cc1 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -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