Blender Git Commit Log
Git Commits -> Revision 0504280
Revision 0504280 by Lukas Toenne (master) February 27, 2012, 17:38 (GMT) |
Implements a new operator for detaching nodes. In the process i overhauled the node muting system as well. There are a number of features that use a kind of "internal linking" in nodes: 1. muting 2. delete + reconnect (restore link to/from node after delete) 3. the new detach operator (same as 2, but don't delete the node) The desired behavior in all cases is the same: find a sensible mapping of inputs-to-outputs of a node. In the case of muting these links are displayed in red on the node itself. For the other operators they are used to relink connections, such that one gets the best possible ongoing link between previous up- and downstream nodes. Muting previously used a complicated callback system to ensure consistent behavior in the editor as well as execution in compositor, shader cpu/gpu and texture nodes. This has been greatly simplified by moving the muting step into the node tree localization functions. Any muted node is now bypassed using the generalized nodeInternalRelink function and then removed from the local tree. This way the internal execution system doesn't have to deal with muted nodes at all, as if they are non-existent. The same function is also used by the delete_reconnect and the new links_detach operators (which work directly in the editor node tree). Detaching nodes is currently keymapped as a translation variant (macro operator): pressing ALTKEY + moving node first detaches and then continues with regular transform operator. The default key is ALT+DKEY though, instead ALT+GKEY, since the latter is already used for the ungroup operator. |
Commit Details:
Full Hash: 050428049f1f10ac2c8b6ccf7d775c6d9dcfe2ba
SVN Revision: 44490
Parent Commit: d55c1d5
Lines Changed: +444, -743
34 Modified Paths:
/source/blender/blenkernel/BKE_node.h (+8, -27) (Diff)
/source/blender/blenkernel/intern/node.c (+53, -18) (Diff)
/source/blender/editors/space_node/node_draw.c (+6, -17) (Diff)
/source/blender/editors/space_node/node_edit.c (+45, -118) (Diff)
/source/blender/editors/space_node/node_intern.h (+1, -0) (Diff)
/source/blender/editors/space_node/node_ops.c (+7, -2) (Diff)
/source/blender/editors/transform/transform_ops.c (+7, -0) (Diff)
/source/blender/gpu/GPU_material.h (+0, -2) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+0, -25) (Diff)
/source/blender/gpu/intern/gpu_shader_material.glsl (+0, -20) (Diff)
/source/blender/gpu/intern/gpu_shader_material.glsl.c (+226, -234) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_composite.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_outputFile.c (+0, -16) (Diff)
/source/blender/nodes/composite/nodes/node_composite_splitViewer.c (+2, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_viewer.c (+1, -2) (Diff)
/source/blender/nodes/composite/node_composite_tree.c (+24, -8) (Diff)
/source/blender/nodes/composite/node_composite_util.c (+0, -26) (Diff)
/source/blender/nodes/composite/node_composite_util.h (+0, -1) (Diff)
/source/blender/nodes/intern/node_exec.c (+2, -6) (Diff)
/source/blender/nodes/intern/node_util.c (+18, -36) (Diff)
/source/blender/nodes/intern/node_util.h (+1, -8) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output.c (+1, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_lamp.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_tree.c (+17, -4) (Diff)
/source/blender/nodes/shader/node_shader_util.c (+1, -58) (Diff)
/source/blender/nodes/shader/node_shader_util.h (+0, -3) (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 (+17, -4) (Diff)
/source/blender/nodes/texture/node_texture_util.c (+0, -92) (Diff)
/source/blender/nodes/texture/node_texture_util.h (+0, -2) (Diff)
/source/blender/blenkernel/intern/node.c (+53, -18) (Diff)
/source/blender/editors/space_node/node_draw.c (+6, -17) (Diff)
/source/blender/editors/space_node/node_edit.c (+45, -118) (Diff)
/source/blender/editors/space_node/node_intern.h (+1, -0) (Diff)
/source/blender/editors/space_node/node_ops.c (+7, -2) (Diff)
/source/blender/editors/transform/transform_ops.c (+7, -0) (Diff)
/source/blender/gpu/GPU_material.h (+0, -2) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+0, -25) (Diff)
/source/blender/gpu/intern/gpu_shader_material.glsl (+0, -20) (Diff)
/source/blender/gpu/intern/gpu_shader_material.glsl.c (+226, -234) (Diff)
/source/blender/makesdna/DNA_node_types.h (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_composite.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_outputFile.c (+0, -16) (Diff)
/source/blender/nodes/composite/nodes/node_composite_splitViewer.c (+2, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_viewer.c (+1, -2) (Diff)
/source/blender/nodes/composite/node_composite_tree.c (+24, -8) (Diff)
/source/blender/nodes/composite/node_composite_util.c (+0, -26) (Diff)
/source/blender/nodes/composite/node_composite_util.h (+0, -1) (Diff)
/source/blender/nodes/intern/node_exec.c (+2, -6) (Diff)
/source/blender/nodes/intern/node_util.c (+18, -36) (Diff)
/source/blender/nodes/intern/node_util.h (+1, -8) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output.c (+1, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_output_lamp.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_tree.c (+17, -4) (Diff)
/source/blender/nodes/shader/node_shader_util.c (+1, -58) (Diff)
/source/blender/nodes/shader/node_shader_util.h (+0, -3) (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 (+17, -4) (Diff)
/source/blender/nodes/texture/node_texture_util.c (+0, -92) (Diff)
/source/blender/nodes/texture/node_texture_util.h (+0, -2) (Diff)