diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-09 11:02:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-09 11:02:33 +0300 |
commit | a92557f77b46784bb2631981fbf9fd67468419d1 (patch) | |
tree | c7c1e0610d6b76aac0db873cad78e54c3a8f7f3e /source/blender/nodes/composite | |
parent | 2d2875fc158d2fbcade1d335f2ca3921cb65d87e (diff) | |
parent | 598216c36e2461ddcaa7dd72e4d50691710c4647 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/nodes/composite')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_sepcombYCCA.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_sepcombYCCA.c b/source/blender/nodes/composite/nodes/node_composite_sepcombYCCA.c index d712f921ba3..27b1fff321e 100644 --- a/source/blender/nodes/composite/nodes/node_composite_sepcombYCCA.c +++ b/source/blender/nodes/composite/nodes/node_composite_sepcombYCCA.c @@ -46,6 +46,10 @@ static bNodeSocketTemplate cmp_node_sepycca_out[] = { { -1, 0, "" } }; +static void node_composit_init_mode_sepycca(bNodeTree *UNUSED(ntree), bNode *node) +{ + node->custom1 = 1; /* BLI_YCC_ITU_BT709 */ +} void register_node_type_cmp_sepycca(void) { @@ -53,6 +57,7 @@ void register_node_type_cmp_sepycca(void) cmp_node_type_base(&ntype, CMP_NODE_SEPYCCA, "Separate YCbCrA", NODE_CLASS_CONVERTOR, 0); node_type_socket_templates(&ntype, cmp_node_sepycca_in, cmp_node_sepycca_out); + node_type_init(&ntype, node_composit_init_mode_sepycca); nodeRegisterType(&ntype); } @@ -72,12 +77,18 @@ static bNodeSocketTemplate cmp_node_combycca_out[] = { { -1, 0, "" } }; +static void node_composit_init_mode_combycca(bNodeTree *UNUSED(ntree), bNode *node) +{ + node->custom1 = 1; /* BLI_YCC_ITU_BT709 */ +} + void register_node_type_cmp_combycca(void) { static bNodeType ntype; cmp_node_type_base(&ntype, CMP_NODE_COMBYCCA, "Combine YCbCrA", NODE_CLASS_CONVERTOR, 0); node_type_socket_templates(&ntype, cmp_node_combycca_in, cmp_node_combycca_out); + node_type_init(&ntype, node_composit_init_mode_combycca); nodeRegisterType(&ntype); } |