Blender Git Loki

Git Commits -> Revision 266cd7b

Revision 266cd7b by Charlie Jolly (master)
March 17, 2021, 11:54 (GMT)
Nodes: Add support to mute node wires

This patch adds the ability to mute individual wires in the node editor.
This is invoked like the cut links operator but with a new shortcut.

Mute = Ctrl + Alt
Cut = Ctrl

Dragging over wires will toggle the mute state for that wire.
The muted wires are drawn in red with a bar across the center.
Red is used in the nodes context to indicate invalid links, muted links and internal links.

When a wire is muted it exposes the original node buttons which are normally hidden when a wire is connected.

Downstream and upstream links connected using reroute nodes are also muted.

Outside scope of patch:
- Add support for pynodes e.g. Animation Nodes
- Requires minor change to check for muted links using the `is_muted` link property or the `is_linked` socket property.

Maniphest Tasks: T52659

Differential Revision: https://developer.blender.org/D2807

Commit Details:

Full Hash: 266cd7bb82ce4bfed20a3d61a84f25e2bacfca2b
Parent Commit: 20bf736
Lines Changed: +324, -22

19 Modified Paths:

/intern/cycles/blender/blender_shader.cpp (+2, -1) (Diff)
/release/scripts/presets/keyconfig/keymap_data/blender_default.py (+1, -0) (Diff)
/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py (+1, -0) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+110, -1) (Diff)
/source/blender/compositor/intern/COM_NodeGraph.cc (+2, -1) (Diff)
/source/blender/editors/space_node/drawnode.c (+45, -8) (Diff)
/source/blender/editors/space_node/node_intern.h (+1, -0) (Diff)
/source/blender/editors/space_node/node_ops.c (+1, -0) (Diff)
/source/blender/editors/space_node/node_relationships.c (+108, -3) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_nodelink_vert.glsl (+11, -3) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+5, -0) (Diff)
/source/blender/nodes/intern/node_exec.c (+3, -2) (Diff)
/source/blender/nodes/intern/node_tree_ref.cc (+3, -0) (Diff)
/source/blender/nodes/shader/node_shader_tree.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_cursors.c (+25, -1) (Diff)
/source/blender/windowmanager/wm_cursors.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021