diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-04-17 11:47:00 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-04-17 11:47:00 +0400 |
commit | bb1b2529a0b0dce1b9c34e616436599ab5fd8021 (patch) | |
tree | de32375dede50c5e91aa743f318a96fae662da4a /release/scripts/modules/nodeitems_utils.py | |
parent | cfefa1d086825ea78c14ad3527637613378992da (diff) |
Added back the basic Search operator to the node Add menu. This operator should be implemented a bit nicer using the new categories system as well, but for now works just as before.
Diffstat (limited to 'release/scripts/modules/nodeitems_utils.py')
-rw-r--r-- | release/scripts/modules/nodeitems_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/modules/nodeitems_utils.py b/release/scripts/modules/nodeitems_utils.py index d63999cbe96..522e61769ea 100644 --- a/release/scripts/modules/nodeitems_utils.py +++ b/release/scripts/modules/nodeitems_utils.py @@ -104,6 +104,9 @@ def register_node_ui(): def draw_add_menu(self, context): layout = self.layout + layout.operator_context = 'INVOKE_DEFAULT' + op = layout.operator("node.add_search", text="Search ...") + for cat in node_categories: if cat.poll(context): layout.menu("NODE_MT_category_%s" % cat.identifier) |