[Bf-blender-cvs] [f19899b] master: Disable color picker template cubic parameter by default.

Antony Riakiotakis noreply at git.blender.org
Fri Mar 14 01:11:46 CET 2014


Commit: f19899b474f19bf5cbf982fc3827b6468a2bf2aa
Author: Antony Riakiotakis
Date:   Fri Mar 14 02:11:34 2014 +0200
https://developer.blender.org/rBf19899b474f19bf5cbf982fc3827b6468a2bf2aa

Disable color picker template cubic parameter by default.

This is mostly useful for precision in lift/gamma/gain nodes. Display of
those values is done with linear interpolation while saturation is
interpolated cubically. This will lead to color inconsistency between
selected and displayed color on color pickers for instance, which should
be avoided on those use cases.

===================================================================

M	source/blender/makesrna/intern/rna_ui_api.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_ui_api.c b/source/blender/makesrna/intern/rna_ui_api.c
index adabc1d..7f9b5eb 100644
--- a/source/blender/makesrna/intern/rna_ui_api.c
+++ b/source/blender/makesrna/intern/rna_ui_api.c
@@ -733,7 +733,7 @@ void RNA_api_ui_layout(StructRNA *srna)
 	RNA_def_boolean(func, "value_slider", false, "", "Display the value slider to the right of the color wheel");
 	RNA_def_boolean(func, "lock", false, "", "Lock the color wheel display to value 1.0 regardless of actual color");
 	RNA_def_boolean(func, "lock_luminosity", false, "", "Keep the color at its original vector length");
-	RNA_def_boolean(func, "cubic", true, "", "Cubic saturation for picking values close to white");
+	RNA_def_boolean(func, "cubic", false, "", "Cubic saturation for picking values close to white");
 
 	func = RNA_def_function(srna, "template_image_layers", "uiTemplateImageLayers");
 	RNA_def_function_flag(func, FUNC_USE_CONTEXT);




More information about the Bf-blender-cvs mailing list