Blender Git Loki
Git Commits -> Revision fc373af
Revision fc373af by Jacques Lucke (master) November 8, 2021, 11:24 (GMT) |
Nodes: store socket declaration reference in socket Previously, to get the declaration of a socket, one had to go through `node->declaration`. Now this indirection is not necessary anymore. This makes it easier to add more per-socket information into the declaration and accessing it in various places. Currently, this system is used by socket descriptions and node warnings for unsupported geometry component types. |
Commit Details:
Full Hash: fc373af8f5a43553a8f9cdb86f8e18c78040a537
Parent Commit: 09cef0f
Lines Changed: +70, -47
8 Modified Paths:
/source/blender/blenkernel/BKE_node.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/node.cc (+42, -7) (Diff)
/source/blender/editors/space_node/node_draw.cc (+2, -15) (Diff)
/source/blender/makesdna/DNA_node_types.h (+19, -10) (Diff)
/source/blender/nodes/intern/node_declaration.cc (+0, -10) (Diff)
/source/blender/nodes/intern/node_geometry_exec.cc (+2, -2) (Diff)
/source/blender/nodes/intern/node_socket.cc (+2, -1) (Diff)
/source/blender/nodes/NOD_node_declaration.hh (+0, -1) (Diff)
/source/blender/blenkernel/intern/node.cc (+42, -7) (Diff)
/source/blender/editors/space_node/node_draw.cc (+2, -15) (Diff)
/source/blender/makesdna/DNA_node_types.h (+19, -10) (Diff)
/source/blender/nodes/intern/node_declaration.cc (+0, -10) (Diff)
/source/blender/nodes/intern/node_geometry_exec.cc (+2, -2) (Diff)
/source/blender/nodes/intern/node_socket.cc (+2, -1) (Diff)
/source/blender/nodes/NOD_node_declaration.hh (+0, -1) (Diff)