Blender Git Commit Log

Git Commits -> Revision bd3ec60

Revision bd3ec60 by Lukas Toenne (master)
August 8, 2012, 16:44 (GMT)
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.

Commit Details:

Full Hash: bd3ec606517f0ca02d503a1856963b0a2ddc32e1
SVN Revision: 49700
Parent Commit: a169316
Lines Changed: +187, -1

1 Added Path:

/release/scripts/startup/bl_operators/node.py (+100, -0) (View)

5 Modified Paths:

/release/scripts/startup/bl_operators/__init__.py (+1, -0) (Diff)
/source/blender/editors/space_node/node_header.c (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+66, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+13, -1) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+4, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021