Commit: 0048820df8ee605d861a2dbc7f05823723dd5b36 Author: Alaska Date: Tue Oct 11 16:59:12 2022 +0200 Branches: master https://developer.blender.org/rB0048820df8ee605d861a2dbc7f05823723dd5b36
Fix T101601: Compositor/Set cryptomatte alpha to 1. Cryptomatte uses alpha node, which was altered to by default apply the alpha. This patch changes it back to replacing the alpha. Reviewed By: jbakker Maniphest Tasks: T101601 Differential Revision: https://developer.blender.org/D16165 =================================================================== M source/blender/compositor/nodes/COM_CryptomatteNode.cc =================================================================== diff --git a/source/blender/compositor/nodes/COM_CryptomatteNode.cc b/source/blender/compositor/nodes/COM_CryptomatteNode.cc index 751ac0003bf..ee31fce0ea8 100644 --- a/source/blender/compositor/nodes/COM_CryptomatteNode.cc +++ b/source/blender/compositor/nodes/COM_CryptomatteNode.cc @@ -10,6 +10,7 @@ #include "COM_MultilayerImageOperation.h" #include "COM_RenderLayersProg.h" #include "COM_SetAlphaMultiplyOperation.h" +#include "COM_SetAlphaReplaceOperation.h" #include "COM_SetColorOperation.h" namespace blender::compositor { @@ -48,7 +49,7 @@ void CryptomatteBaseNode::convert_to_operations(NodeConverter &converter, converter.map_output_socket(output_image_socket, apply_mask_operation->get_output_socket(0)); NodeOutput *output_pick_socket = this->get_output_socket(2); - SetAlphaMultiplyOperation *extract_pick_operation = new SetAlphaMultiplyOperation(); + SetAlphaReplaceOperation *extract_pick_operation = new SetAlphaReplaceOperation(); converter.add_operation(extract_pick_operation); converter.add_input_value(extract_pick_operation->get_input_socket(1), 1.0f); converter.add_link(cryptomatte_operation->get_output_socket(0), _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs