Blender Git Commit Log
Git Commits -> Revision 09ed97a
Revision 09ed97a by Lukas Toenne (master) October 25, 2012, 16:49 (GMT) |
Internal node links are now cached in a per-node list, instead of being generated as a transient list that is returned from the callback and had to be freed by the caller. These internal links are used for muted nodes, disconnect operators and reroute nodes, to effectively replace the node with direct input-to-output links. Storing this list in the node has the advantage of requiring far fewer calls to the potentially expensive internal_connect callback. This was called on every node redraw ... Also it will allow Cycles to properly use the internal links for muted nodes, which ensures consistent behavior. The previous method was not applicable in Cycles because transient list return values are not supported well in the RNA and particularly the C++ API implementation. |
Commit Details:
Full Hash: 09ed97afc5b20767a67d598fa3ede70892b5d647
SVN Revision: 51630
Parent Commit: 7107b8e
Lines Changed: +72, -82
24 Modified Paths:
/source/blender/blenkernel/BKE_node.h (+5, -6) (Diff)
/source/blender/blenkernel/intern/node.c (+34, -10) (Diff)
/source/blender/blenloader/intern/readfile.c (+2, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+3, -1) (Diff)
/source/blender/compositor/nodes/COM_MuteNode.cpp (+2, -15) (Diff)
/source/blender/editors/space_node/node_draw.c (+1, -10) (Diff)
/source/blender/editors/space_node/node_edit.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -0) (Diff)
/source/blender/nodes/composite/nodes/node_composite_composite.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_splitViewer.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_viewer.c (+1, -1) (Diff)
/source/blender/nodes/composite/node_composite_tree.c (+1, -1) (Diff)
/source/blender/nodes/intern/node_common.c (+4, -9) (Diff)
/source/blender/nodes/intern/node_exec.c (+2, -8) (Diff)
/source/blender/nodes/intern/node_util.c (+4, -9) (Diff)
/source/blender/nodes/intern/node_util.h (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_lamp.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_material.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_world.c (+1, -1) (Diff)
/source/blender/nodes/shader/node_shader_tree.c (+1, -1) (Diff)
/source/blender/nodes/texture/nodes/node_texture_output.c (+1, -1) (Diff)
/source/blender/nodes/texture/nodes/node_texture_viewer.c (+1, -1) (Diff)
/source/blender/nodes/texture/node_texture_tree.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+34, -10) (Diff)
/source/blender/blenloader/intern/readfile.c (+2, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+3, -1) (Diff)
/source/blender/compositor/nodes/COM_MuteNode.cpp (+2, -15) (Diff)
/source/blender/editors/space_node/node_draw.c (+1, -10) (Diff)
/source/blender/editors/space_node/node_edit.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -0) (Diff)
/source/blender/nodes/composite/nodes/node_composite_composite.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_splitViewer.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_viewer.c (+1, -1) (Diff)
/source/blender/nodes/composite/node_composite_tree.c (+1, -1) (Diff)
/source/blender/nodes/intern/node_common.c (+4, -9) (Diff)
/source/blender/nodes/intern/node_exec.c (+2, -8) (Diff)
/source/blender/nodes/intern/node_util.c (+4, -9) (Diff)
/source/blender/nodes/intern/node_util.h (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_lamp.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_material.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_world.c (+1, -1) (Diff)
/source/blender/nodes/shader/node_shader_tree.c (+1, -1) (Diff)
/source/blender/nodes/texture/nodes/node_texture_output.c (+1, -1) (Diff)
/source/blender/nodes/texture/nodes/node_texture_viewer.c (+1, -1) (Diff)
/source/blender/nodes/texture/node_texture_tree.c (+1, -1) (Diff)