Node editor: when adding a new node, automatic links are created:

- from all selected nodes
- only connections between highest order socket types; so if there's RGBA
  and Value sockets, only RGBA sockets are connected. This because in
  these cases the Value sockets usually are for user input.
  Example: Mix node.

Thanks Trip for the hint!
This commit is contained in:
2006-12-05 21:33:56 +00:00
parent 5e52bee5a7
commit 09d3d15f45
4 changed files with 68 additions and 2 deletions

View File

@@ -79,6 +79,8 @@ int node_has_hidden_sockets(struct bNode *node);
struct bNode *node_add_node(struct SpaceNode *snode, int type, float locx, float locy);
void node_adduplicate(struct SpaceNode *snode);
void snode_autoconnect(struct SpaceNode *snode, struct bNode *node_to, int flag);
/* ************* drawnode.c *************** */
struct SpaceNode;
struct bNodeLink;