diff options
author | Omar Emara <mail@OmarEmara.dev> | 2022-07-14 14:52:44 +0300 |
---|---|---|
committer | Omar Emara <mail@OmarEmara.dev> | 2022-07-14 14:52:44 +0300 |
commit | eb3e56a36e18fd4d560a31c2b60ceb235fd0da09 (patch) | |
tree | ec40c0b8d16dd3bf7b1050fd5888b4c6fbfdcce5 /source/blender/nodes/composite/nodes/node_composite_diff_matte.cc | |
parent | db80cf6ad79cad93ce5638d6e406e674775fc5dc (diff) |
Fix: Wrong output types for some compositor nodes
The Difference Matte and RGB To BW nodes have a wrong output type. They
should be floats but are of type color.
This is a regression that was introduced during the migration to the
socket builder API in D13266.
Reviewed By: Blendify, fclem
Differential Revision: https://developer.blender.org/D15232
Diffstat (limited to 'source/blender/nodes/composite/nodes/node_composite_diff_matte.cc')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_diff_matte.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_diff_matte.cc b/source/blender/nodes/composite/nodes/node_composite_diff_matte.cc index 20dd61a9725..b87bbe439db 100644 --- a/source/blender/nodes/composite/nodes/node_composite_diff_matte.cc +++ b/source/blender/nodes/composite/nodes/node_composite_diff_matte.cc @@ -19,7 +19,7 @@ static void cmp_node_diff_matte_declare(NodeDeclarationBuilder &b) b.add_input<decl::Color>(N_("Image 1")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); b.add_input<decl::Color>(N_("Image 2")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); b.add_output<decl::Color>(N_("Image")); - b.add_output<decl::Color>(N_("Matte")); + b.add_output<decl::Float>(N_("Matte")); } static void node_composit_init_diff_matte(bNodeTree *UNUSED(ntree), bNode *node) |