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>2012-08-08 20:44:16 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2012-08-08 20:44:16 +0400
commitbd3ec606517f0ca02d503a1856963b0a2ddc32e1 (patch)
tree4251dbafb08ca1c88dd1cd5613fa2f623d251dc3 /release/scripts/startup/bl_operators/__init__.py
parenta1693168f24c818e3902bd95352aa0c5fb3b7d1c (diff)
Search option for adding nodes.
The 'Add' menu in the node editor now has an option 'Search' at the top, which opens a separate popup for searching node types by name. The operator for this is implemented completely in Python (this could also be done for the regular menu-based Add options in the future). There are a few necessary extensions to the RNA as well: * The View2D struct in regions is now exposed. Currently only contains converter functions for coordinates from the region to the view (i.e. scrolled and zoomed view space). Used for converting mouse location to node space. * The SpaceNode exposes the existing 'cursor_location' for operators to store mouse position beyond invoke calls. Not used for anything else (transforms) so far. * The edit_tree in SpaceNode is also exposed, this is needed for operators to work correctly inside node groups.
Diffstat (limited to 'release/scripts/startup/bl_operators/__init__.py')
-rw-r--r--release/scripts/startup/bl_operators/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/__init__.py b/release/scripts/startup/bl_operators/__init__.py
index 06b4429d25c..ecbbe34dbb4 100644
--- a/release/scripts/startup/bl_operators/__init__.py
+++ b/release/scripts/startup/bl_operators/__init__.py
@@ -29,6 +29,7 @@ _modules = (
"console",
"image",
"mesh",
+ "node",
"object_align",
"object",
"object_randomize_transform",