Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-03-29 11:15:51 +0400
committerMatt Ebb <matt@mke3.net>2010-03-29 11:15:51 +0400
commit227baee3d420bd68866009b3be93117371bfd14f (patch)
tree440265bb184a077c0fc7a2267686ddf47937e034 /source/blender/makesrna
parentf4dcd1d570272a6bb8350a685d9539a0534fe551 (diff)
Tweak to set default ui range for color/color_gamma properties
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_define.c2
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;
}