diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-17 10:48:05 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-17 10:59:04 +0300 |
commit | 97defd9cd79b6e3ed0e52481a7078107dbe0522b (patch) | |
tree | 43bcafd0f3ea6292919d2930192b6fabef9efece /source/blender/nodes/composite | |
parent | f4639276eea47f193fa0d59e8110dbe2c1af3442 (diff) |
Cryptomatte: Show Name of Object/Material Under The Cursor.
This change shows the object or material name with the cursor when picking for a cryptomatte node.
Reviewed By: Julian Eisel
Differential Revision: https://developer.blender.org/D10705
Diffstat (limited to 'source/blender/nodes/composite')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc b/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc index ae4d565b292..973864be7b3 100644 --- a/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc +++ b/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc @@ -216,6 +216,13 @@ void ntreeCompositCryptomatteLayerPrefix(const bNode *node, char *r_prefix, size BLI_strncpy(r_prefix, cstr, prefix_len); } +CryptomatteSession *ntreeCompositCryptomatteSession(bNode *node) +{ + blender::bke::cryptomatte::CryptomatteSessionPtr session_ptr = cryptomatte_init_from_node( + *node, 0, true); + return session_ptr.release(); +} + static void node_init_cryptomatte(bNodeTree *UNUSED(ntree), bNode *node) { NodeCryptomatte *user = static_cast<NodeCryptomatte *>( |