diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-12-10 13:40:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-12-10 13:40:30 +0300 |
commit | 3060217d39747589d66bc4501ceaf30f59923cdc (patch) | |
tree | 9fd407b85f721a5298e941dbe59f25329776adc4 /source/blender/nodes/intern/node_util.h | |
parent | 715f57371baa627ca677a8faf88e56ebb1180027 (diff) |
Cleanup: move public doc-strings into headers for 'nodes'
Ref T92709
Diffstat (limited to 'source/blender/nodes/intern/node_util.h')
-rw-r--r-- | source/blender/nodes/intern/node_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/node_util.h b/source/blender/nodes/intern/node_util.h index c064ef4ab36..5cb3540d617 100644 --- a/source/blender/nodes/intern/node_util.h +++ b/source/blender/nodes/intern/node_util.h @@ -82,6 +82,12 @@ void node_vector_math_label(struct bNodeTree *ntree, struct bNode *node, char *l void node_filter_label(struct bNodeTree *ntree, struct bNode *node, char *label, int maxlen); /*** Link Handling */ + +/** + * 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 + * 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); float node_socket_get_float(struct bNodeTree *ntree, struct bNode *node, struct bNodeSocket *sock); |