Tweak to set default ui range for color/color_gamma properties
authorMatt Ebb <matt@mke3.net>
Mon, 29 Mar 2010 07:15:51 +0000 (07:15 +0000)
committerMatt Ebb <matt@mke3.net>
Mon, 29 Mar 2010 07:15:51 +0000 (07:15 +0000)
source/blender/makesrna/intern/rna_define.c

index 373151fb3697176fa8eb1a4eb3650cdd1cf6cc10..d0a8763baa770711bf05fa1bf717d4d25bab99c3 100644 (file)
@@ -885,7 +885,7 @@ PropertyRNA *RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier
                        fprop->hardmin= (subtype == PROP_UNSIGNED)? 0.0f: -FLT_MAX;
                        fprop->hardmax= FLT_MAX;
 
-                       if(subtype == PROP_COLOR) {
+                       if(ELEM(subtype, PROP_COLOR, PROP_COLOR_GAMMA)) {
                                fprop->softmin= 0.0f;
                                fprop->softmax= 1.0f;
                        }