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.
This commit is contained in:
parent
1a7b94236e
commit
bc837ad14e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue