forked from bartvdbraak/blender
Fix [#27378] ASC-CDL Color Balance Node does not allow for full range of values
Report title is incorrect, it does allow for the full range, but actually allows too much, so clamping slope and power min at 0.
This commit is contained in:
parent
09e96f6b56
commit
75dcc2a7dd
@ -2221,6 +2221,7 @@ static void def_cmp_colorbalance(StructRNA *srna)
|
|||||||
RNA_def_property_float_sdna(prop, NULL, "gamma");
|
RNA_def_property_float_sdna(prop, NULL, "gamma");
|
||||||
RNA_def_property_array(prop, 3);
|
RNA_def_property_array(prop, 3);
|
||||||
RNA_def_property_float_array_default(prop, default_1);
|
RNA_def_property_float_array_default(prop, default_1);
|
||||||
|
RNA_def_property_range(prop, 0.f, FLT_MAX);
|
||||||
RNA_def_property_ui_range(prop, 0, 2, 0.1, 3);
|
RNA_def_property_ui_range(prop, 0, 2, 0.1, 3);
|
||||||
RNA_def_property_ui_text(prop, "Power", "Correction for Midtones");
|
RNA_def_property_ui_text(prop, "Power", "Correction for Midtones");
|
||||||
RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update");
|
RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update");
|
||||||
@ -2229,6 +2230,7 @@ static void def_cmp_colorbalance(StructRNA *srna)
|
|||||||
RNA_def_property_float_sdna(prop, NULL, "gain");
|
RNA_def_property_float_sdna(prop, NULL, "gain");
|
||||||
RNA_def_property_array(prop, 3);
|
RNA_def_property_array(prop, 3);
|
||||||
RNA_def_property_float_array_default(prop, default_1);
|
RNA_def_property_float_array_default(prop, default_1);
|
||||||
|
RNA_def_property_range(prop, 0.f, FLT_MAX);
|
||||||
RNA_def_property_ui_range(prop, 0, 2, 0.1, 3);
|
RNA_def_property_ui_range(prop, 0, 2, 0.1, 3);
|
||||||
RNA_def_property_ui_text(prop, "Slope", "Correction for Highlights");
|
RNA_def_property_ui_text(prop, "Slope", "Correction for Highlights");
|
||||||
RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update");
|
RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update");
|
||||||
|
Loading…
Reference in New Issue
Block a user