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:
authorCampbell Barton <ideasman42@gmail.com>2014-04-01 14:29:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-01 14:50:09 +0400
commit77f815f67a99404a6c5d78108e4cc93336f388cf (patch)
tree61b912dece2c3f590726c26b161c2eb634890cb8 /source/blender/makesrna/intern/rna_define.c
parent467596dd36f48c5779b094c2bfe74c322f19de3d (diff)
RNA: clamp colors min to 0.0
any colors which need to be negative can explicitly pass in a range.
Diffstat (limited to 'source/blender/makesrna/intern/rna_define.c')
-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 7c6198d2c05..5b760446f11 100644
--- a/source/blender/makesrna/intern/rna_define.c
+++ b/source/blender/makesrna/intern/rna_define.c
@@ -1068,7 +1068,7 @@ PropertyRNA *RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier
fprop->hardmax = FLT_MAX;
if (ELEM(subtype, PROP_COLOR, PROP_COLOR_GAMMA)) {
- fprop->softmin = 0.0f;
+ fprop->softmin = fprop->hardmin = 0.0f;
fprop->softmax = 1.0f;
}
else if (subtype == PROP_FACTOR) {