From ddd6be1834692c63353e47ab8d94e8dfc576c906 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 4 May 2016 23:56:38 +1000 Subject: Compositor: negative color support for ASC-CDL offset Since the color wheel can't handle negative colors usefully, use a basis value for the initial RGB. --- source/blender/makesrna/intern/rna_nodetree.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/makesrna/intern/rna_nodetree.c') diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index ccbabb2b238..3221e93fe84 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -5892,6 +5892,12 @@ static void def_cmp_colorbalance(StructRNA *srna) RNA_def_property_ui_range(prop, 0, 2, 0.1, 3); RNA_def_property_ui_text(prop, "Slope", "Correction for Highlights"); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeColorBalance_update_cdl"); + + prop = RNA_def_property(srna, "offset_basis", PROP_FLOAT, PROP_NONE); + RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); + RNA_def_property_ui_range(prop, -1.0, 1.0, 1.0, 2); + RNA_def_property_ui_text(prop, "Basis", "Support negative color by using this as the RGB basis"); + RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeColorBalance_update_cdl"); } static void def_cmp_huecorrect(StructRNA *srna) -- cgit v1.2.3