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>2012-08-07 23:49:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-07 23:49:38 +0400
commite9d73dbba5a8a3e2c118eb63f9cdd0655aec3ac8 (patch)
treefd0855db9c41f55399b033fa591f47e3b4306a28 /source/blender/python
parent4005b88b30cfb842bc2738d3ba03d80a78a0612c (diff)
use -FLT_MAX where FLT_MIN was misused
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_rna.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index 03e20322a59..bd660ae0001 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -435,7 +435,7 @@ static int mathutils_rna_vector_set(BaseMathObject *bmo, int subtype)
RNA_property_float_range(&self->ptr, self->prop, &min, &max);
- if (min != FLT_MIN || max != FLT_MAX) {
+ if (min != -FLT_MAX || max != FLT_MAX) {
int i, len = RNA_property_array_length(&self->ptr, self->prop);
for (i = 0; i < len; i++) {
CLAMP(bmo->data[i], min, max);