diff options
author | Matt Ebb <matt@mke3.net> | 2010-03-29 11:15:51 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-03-29 11:15:51 +0400 |
commit | 227baee3d420bd68866009b3be93117371bfd14f (patch) | |
tree | 440265bb184a077c0fc7a2267686ddf47937e034 /source/blender/makesrna/intern/rna_define.c | |
parent | f4dcd1d570272a6bb8350a685d9539a0534fe551 (diff) |
Tweak to set default ui range for color/color_gamma properties
Diffstat (limited to 'source/blender/makesrna/intern/rna_define.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_define.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c index 373151fb369..d0a8763baa7 100644 --- a/source/blender/makesrna/intern/rna_define.c +++ b/source/blender/makesrna/intern/rna_define.c @@ -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; } |