Blender Git Commit Log

Git Commits -> Revision 9306037

Revision 9306037 by Alexander Gavrilov (master)
August 4, 2020, 08:29 (GMT)
Node Groups: expose the SOCK_HIDE_VALUE flag for node group inputs.

This flag specifies that even when the socket is not connected,
the node should not display the input field for the constant input
value. This is useful for inputs like Normal, which have special
handling for the missing input case and don't use a constant value.
Currently there is no way to change this flag from Python, and
through UI it can only be done by re-creating the socket.

This patch exposes the flag through RNA and UI, makes sure it
is properly updated when changed, and adds special handling to
ensure that it is correctly set when creating a node group from
a node set that includes reroute nodes.

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

Commit Details:

Full Hash: 9306037ed3d14a7afce607738f83c8b9968d478d
Parent Commit: b016e7f
Lines Changed: +87, -11

6 Modified Paths:

/source/blender/editors/space_node/drawnode.c (+2, -0) (Diff)
/source/blender/editors/space_node/node_group.c (+23, -11) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+6, -0) (Diff)
/source/blender/nodes/intern/node_common.c (+3, -0) (Diff)
/source/blender/nodes/intern/node_socket.cc (+48, -0) (Diff)
/source/blender/nodes/NOD_socket.h (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021