[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37331] trunk/blender/source/blender/ makesrna/intern/rna_nodetree.c: Fix [#27378] ASC-CDL Color Balance Node does not allow for full range of values

Matt Ebb matt at mke3.net
Thu Jun 9 13:09:48 CEST 2011


Revision: 37331
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37331
Author:   broken
Date:     2011-06-09 11:09:46 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_nodetree.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_nodetree.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2011-06-09 08:58:27 UTC (rev 37330)
+++ trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2011-06-09 11:09:46 UTC (rev 37331)
@@ -2221,6 +2221,7 @@
 	RNA_def_property_float_sdna(prop, NULL, "gamma");
 	RNA_def_property_array(prop, 3);
 	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_text(prop, "Power", "Correction for Midtones");
 	RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update");
@@ -2229,6 +2230,7 @@
 	RNA_def_property_float_sdna(prop, NULL, "gain");
 	RNA_def_property_array(prop, 3);
 	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_text(prop, "Slope", "Correction for Highlights");
 	RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update");




More information about the Bf-blender-cvs mailing list