Blender Git Commit Log

Git Commits -> Revision fd553c5

Revision fd553c5 by Lukas Toenne (master)
March 2, 2014, 15:04 (GMT)
Fix T37334: Better "internal links" function for muting and node disconnect.

Implements a more flexible internal connect function for standard nodes
(compositor, shader, texture). Allow feasible datatype connections by
priority.

The priorities for common datatypes in compositor, shader and texture
nodes are encoded in a simple function. Certain impossible connections
(e.g. color -> cycles shader) are excluded by giving them -1 priority.

Priority overrides link status: If a higher priority input can be found,
this will be used regardless of link status. Link status only comes into
play for inputs with same priority.

Reviewers: brecht

CC: sebastian_k

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

Commit Details:

Full Hash: fd553c5b7bdfd5bec1cc005bc67785c54916a64a
Parent Commit: 6137ae2
Lines Changed: +166, -58

16 Modified Paths:

/source/blender/blenkernel/BKE_node.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+14, -10) (Diff)
/source/blender/nodes/intern/node_socket.c (+2, -0) (Diff)
/source/blender/nodes/intern/node_util.c (+117, -19) (Diff)
/source/blender/nodes/shader/nodes/node_shader_texture.c (+3, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_brick.c (+8, -8) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_checker.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_environment.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_gradient.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_image.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_magic.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_musgrave.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_noise.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_wave.c (+4, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021