diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-31 15:20:23 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-31 15:43:14 +0300 |
commit | bc837ad14e6b4a2c0afc1ce062d6d8f587dd242e (patch) | |
tree | adf8938855cd5deb0581f87d29dd4c6c4c4ee47b | |
parent | 1a7b94236e0f4a1ff382a9c17e723c53130ce872 (diff) |
Fix: Cryptomatte Picker on Legacy Node Failing.
The new Cryptomatte workflow assumes that the picker is used in the new
workflow. The legacy node wasn't working as it would never find a
correct cryptomatte layer. This fix will use the color sampling like we
used to do.
-rw-r--r-- | source/blender/editors/interface/interface_eyedropper_color.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_eyedropper_color.c b/source/blender/editors/interface/interface_eyedropper_color.c index 4ae6f66281f..d5fb0e4e744 100644 --- a/source/blender/editors/interface/interface_eyedropper_color.c +++ b/source/blender/editors/interface/interface_eyedropper_color.c @@ -116,14 +116,11 @@ static bool eyedropper_init(bContext *C, wmOperator *op) float col[4]; RNA_property_float_get_array(&eye->ptr, eye->prop, col); - if (ELEM(eye->ptr.type, &RNA_CompositorNodeCryptomatteV2, &RNA_CompositorNodeCryptomatte)) { + if (eye->ptr.type == &RNA_CompositorNodeCryptomatteV2) { eye->crypto_node = (bNode *)eye->ptr.data; eye->cryptomatte_session = ntreeCompositCryptomatteSession(eye->crypto_node); eye->draw_handle_sample_text = WM_draw_cb_activate(CTX_wm_window(C), eyedropper_draw_cb, eye); } - else { - eye->crypto_node = NULL; - } if (prop_subtype != PROP_COLOR) { Scene *scene = CTX_data_scene(C); |