Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/node_util.h
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| /*** Link Handling */ | /*** Link Handling */ | ||||
| /** | /** | ||||
| * The idea behind this is: When a user connects an input to a socket that is | * The idea behind this is: When a user connects an input to a socket that is | ||||
| * already linked (and if its not an Multi Input Socket), we try to find a replacement socket for | * already linked (and if its not an Multi Input Socket), we try to find a replacement socket for | ||||
| * the link that we try to overwrite and connect that previous link to the new socket. | * the link that we try to overwrite and connect that previous link to the new socket. | ||||
| */ | */ | ||||
| void node_insert_link_default(struct bNodeTree *ntree, struct bNode *node, struct bNodeLink *link); | bool node_insert_link_default(struct bNodeTree *ntree, struct bNode *node, struct bNodeLink *link); | ||||
| float node_socket_get_float(struct bNodeTree *ntree, struct bNode *node, struct bNodeSocket *sock); | float node_socket_get_float(struct bNodeTree *ntree, struct bNode *node, struct bNodeSocket *sock); | ||||
| void node_socket_set_float(struct bNodeTree *ntree, | void node_socket_set_float(struct bNodeTree *ntree, | ||||
| struct bNode *node, | struct bNode *node, | ||||
| struct bNodeSocket *sock, | struct bNodeSocket *sock, | ||||
| float value); | float value); | ||||
| void node_socket_get_color(struct bNodeTree *ntree, | void node_socket_get_color(struct bNodeTree *ntree, | ||||
| struct bNode *node, | struct bNode *node, | ||||
| Show All 18 Lines | |||||