diff options
author | Jacques Lucke <jacques@blender.org> | 2020-12-11 19:32:08 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-12-11 19:38:32 +0300 |
commit | 4885fbc07b50af0f7b93c0df41d6f64cc79b2fa7 (patch) | |
tree | 110f894e6f45afc10ef0083ca55d73db6a34fe04 /source/blender/nodes/intern/node_util.c | |
parent | f762d37790b55352adc22a1d4c9e2b4953f0eac9 (diff) |
Nodes: add Collection socket type
The implementation is pretty much the same as for Object sockets.
The socket color is the one that is used for collections in the outliner.
Part of D9739.
Diffstat (limited to 'source/blender/nodes/intern/node_util.c')
-rw-r--r-- | source/blender/nodes/intern/node_util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/node_util.c b/source/blender/nodes/intern/node_util.c index 123347afc19..9669dc6496b 100644 --- a/source/blender/nodes/intern/node_util.c +++ b/source/blender/nodes/intern/node_util.c @@ -451,6 +451,14 @@ static int node_datatype_priority(eNodeSocketDatatype from, eNodeSocketDatatype return -1; } } + case SOCK_COLLECTION: { + switch (from) { + case SOCK_COLLECTION: + return 1; + default: + return -1; + } + } default: return -1; } |