Blender Git Loki

Git Commits -> Revision f5dde38

Revision f5dde38 by Jacques Lucke (master)
November 17, 2021, 10:52 (GMT)
Cleanup: use same function for updating internal links for all nodes

Previously, node types had a callback that creates internal links. Pretty
much all nodes used the same callback though. The exceptions are the
reroute node (which probably shouldn't be mutable anyway) and some
input/output nodes that are not mutable.

Removing the callback helps with D13246, because it makes it easier
to reason about which internal links are created and when they change.
In the future, the internal links should be part of the node declaration.

Commit Details:

Full Hash: f5dde382af8078a2e5265e7d6710df7cb1b320a0
Parent Commit: 83a4d51
Lines Changed: +25, -75

26 Modified Paths:

/source/blender/blenkernel/BKE_node.h (+3, -4) (Diff)
/source/blender/blenkernel/intern/node.cc (+2, -9) (Diff)
/source/blender/editors/space_node/node_edit.cc (+1, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_common.cc (+0, -4) (Diff)
/source/blender/nodes/composite/nodes/node_composite_composite.cc (+1, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_splitViewer.cc (+1, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_viewer.cc (+1, -1) (Diff)
/source/blender/nodes/composite/node_composite_util.cc (+0, -1) (Diff)
/source/blender/nodes/function/node_function_util.cc (+0, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_common.cc (+0, -4) (Diff)
/source/blender/nodes/geometry/node_geometry_util.cc (+0, -1) (Diff)
/source/blender/nodes/intern/node_common.cc (+0, -21) (Diff)
/source/blender/nodes/intern/node_util.c (+7, -1) (Diff)
/source/blender/nodes/intern/node_util.h (+0, -1) (Diff)
/source/blender/nodes/NOD_common.h (+2, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_common.c (+0, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_aov.c (+1, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_light.c (+1, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_linestyle.c (+1, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_material.c (+1, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_world.c (+1, -2) (Diff)
/source/blender/nodes/shader/node_shader_util.c (+0, -1) (Diff)
/source/blender/nodes/texture/nodes/node_texture_common.c (+0, -1) (Diff)
/source/blender/nodes/texture/nodes/node_texture_output.c (+1, -2) (Diff)
/source/blender/nodes/texture/nodes/node_texture_viewer.c (+1, -2) (Diff)
/source/blender/nodes/texture/node_texture_util.c (+0, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021