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>2011-03-30 08:58:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-30 08:58:45 +0400
commit91881dce85424860bb97d7e6ccbffc492ac98bd3 (patch)
tree66cf7f2b168ba362a7b35b675614f9c3f8e0e8f3 /source/blender/editors/util/numinput.c
parent70162a4abd61df29f8ee451d94eeee6315d6155f (diff)
- include for BGE joystick sensor
- remove print from numinput and get rid of some float/double warnings. - nicer align line-number in text editor.
Diffstat (limited to 'source/blender/editors/util/numinput.c')
-rw-r--r--source/blender/editors/util/numinput.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c
index a5954cdc215..1b58a1e2a58 100644
--- a/source/blender/editors/util/numinput.c
+++ b/source/blender/editors/util/numinput.c
@@ -85,7 +85,7 @@ void outputNumInput(NumInput *n, char *str)
else
inv[0] = 0;
- if( n->val[i] > 1e10 || n->val[i] < -1e10 )
+ if( n->val[i] > 1e10f || n->val[i] < -1e10f )
sprintf(&str[j*20], "%s%.4e%c", inv, n->val[i], cur);
else
switch (n->ctrl[i]) {
@@ -281,7 +281,7 @@ char handleNumInput(NumInput *n, wmEvent *event)
if (!n->ctrl[idx])
n->ctrl[idx] = 1;
- if (fabs(n->val[idx]) > 9999999.0f);
+ if (fabsf(n->val[idx]) > 9999999.0f);
else if (n->ctrl[idx] == 1) {
n->val[idx] *= 10;
n->val[idx] += Val;
@@ -303,7 +303,7 @@ char handleNumInput(NumInput *n, wmEvent *event)
}
}
- printf("%f\n", n->val[idx]);
+ // printf("%f\n", n->val[idx]);
/* REDRAW SINCE NUMBERS HAVE CHANGED */
return 1;