Blender Git Commit Log
Git Commits -> Revision 9009ac2
Revision 9009ac2 by Jacques Lucke (master) July 5, 2021, 08:46 (GMT) |
Geometry Nodes: new Viewer node This adds a viewer node similar to the one in the compositor. The icon in the headers of nodes is removed because it served the same purpose and is not necessary anymore. Node outputs can be connected to the active viewer using ctrl+shift+LMB, just like in the compositor. Right now this collides with the shortcut used in the node wrangler addon, which will be changed separately. As of now, the viewed geometry is only visible in the spreadsheet. Viewport visualization will be added separately. There are a couple of benefits of using a viewer node compared to the old approach with the icon in the node header: * Better support for nodes that have more than one geometry output. * It's more consistent with the compositor. * If attributes become decoupled from geometry in the future, the viewer can have a separate input for the attribute to visualize. * The viewer node could potentially have visualization settings. * Allows to keep "visualization points" around by having multiple viewer nodes. * Less visual clutter in node headers. Differential Revision: https://developer.blender.org/D11470 |
Commit Details:
Full Hash: 9009ac2c3d62e0d30d96b8d35ff5ff620cfe053b
Parent Commit: 04313f1
Lines Changed: +484, -208
1 Added Path:
/source/blender/nodes/geometry/nodes/node_geo_viewer.cc (+31, -0) (View)
30 Modified Paths:
/release/scripts/startup/bl_operators/node.py (+0, -62) (Diff)
/release/scripts/startup/bl_operators/spreadsheet.py (+1, -12) (Diff)
/release/scripts/startup/bl_ui/space_spreadsheet.py (+3, -0) (Diff)
/release/scripts/startup/nodeitems_builtins.py (+3, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+3, -2) (Diff)
/source/blender/editors/include/ED_node.h (+2, -0) (Diff)
/source/blender/editors/include/ED_spreadsheet.h (+18, -4) (Diff)
/source/blender/editors/space_buttons/buttons_texture.c (+1, -1) (Diff)
/source/blender/editors/space_node/node_add.cc (+1, -1) (Diff)
/source/blender/editors/space_node/node_draw.cc (+0, -22) (Diff)
/source/blender/editors/space_node/node_edit.cc (+16, -2) (Diff)
/source/blender/editors/space_node/node_intern.h (+0, -1) (Diff)
/source/blender/editors/space_node/node_relationships.cc (+28, -5) (Diff)
/source/blender/editors/space_node/node_select.cc (+10, -3) (Diff)
/source/blender/editors/space_spreadsheet/space_spreadsheet.cc (+9, -35) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_context.cc (+289, -12) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc (+1, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -1) (Diff)
/source/blender/makesdna/DNA_space_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+0, -6) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+12, -16) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+13, -17) (Diff)
/source/blender/modifiers/intern/MOD_nodes_evaluator.cc (+27, -5) (Diff)
/source/blender/modifiers/intern/MOD_nodes_evaluator.hh (+6, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_geometry.h (+1, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -0) (Diff)
/release/scripts/startup/bl_operators/spreadsheet.py (+1, -12) (Diff)
/release/scripts/startup/bl_ui/space_spreadsheet.py (+3, -0) (Diff)
/release/scripts/startup/nodeitems_builtins.py (+3, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+3, -2) (Diff)
/source/blender/editors/include/ED_node.h (+2, -0) (Diff)
/source/blender/editors/include/ED_spreadsheet.h (+18, -4) (Diff)
/source/blender/editors/space_buttons/buttons_texture.c (+1, -1) (Diff)
/source/blender/editors/space_node/node_add.cc (+1, -1) (Diff)
/source/blender/editors/space_node/node_draw.cc (+0, -22) (Diff)
/source/blender/editors/space_node/node_edit.cc (+16, -2) (Diff)
/source/blender/editors/space_node/node_intern.h (+0, -1) (Diff)
/source/blender/editors/space_node/node_relationships.cc (+28, -5) (Diff)
/source/blender/editors/space_node/node_select.cc (+10, -3) (Diff)
/source/blender/editors/space_spreadsheet/space_spreadsheet.cc (+9, -35) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_context.cc (+289, -12) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc (+1, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+2, -1) (Diff)
/source/blender/makesdna/DNA_space_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+0, -6) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+12, -16) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+13, -17) (Diff)
/source/blender/modifiers/intern/MOD_nodes_evaluator.cc (+27, -5) (Diff)
/source/blender/modifiers/intern/MOD_nodes_evaluator.hh (+6, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_geometry.h (+1, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -0) (Diff)