diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-23 10:48:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-23 10:48:36 +0400 |
commit | 5816aa42bf7bff9c7037b7a2bd629c8f26ed2fed (patch) | |
tree | 7dade95cee648c846d8f02162efdd26c710d9444 /source/blender/editors/util | |
parent | c3b746fa7e4ddcddbe42f65bf9915db21fd75669 (diff) |
code cleanup: minor transform refactor
redraw flag were mixing up types - int/char/bool, add enum type to use instead.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/numinput.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c index 3e5f879aa3c..0feaf936172 100644 --- a/source/blender/editors/util/numinput.c +++ b/source/blender/editors/util/numinput.c @@ -114,16 +114,16 @@ void outputNumInput(NumInput *n, char *str) } } -short hasNumInput(NumInput *n) +bool hasNumInput(const NumInput *n) { short i; for (i = 0; i <= n->idx_max; i++) { if (n->ctrl[i]) - return 1; + return true; } - return 0; + return false; } /** @@ -159,7 +159,7 @@ void applyNumInput(NumInput *n, float *vec) } } -char handleNumInput(NumInput *n, const wmEvent *event) +bool handleNumInput(NumInput *n, const wmEvent *event) { float Val = 0; short idx = n->idx, idx_max = n->idx_max; |