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>2018-09-03 05:48:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-03 05:48:51 +0300
commit88a893a83876bd983291881dbea8855600610e2b (patch)
treed47af71eb1069f6e3e870f54ca5312af2536deb5 /source/blender/editors/util/numinput.c
parent0c389862c4fff3fb9eca9027e300774ce1c3eb7e (diff)
parent7ff1750218bf3c2ef4c57f9ea4a12b738f4b7264 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/util/numinput.c')
-rw-r--r--source/blender/editors/util/numinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c
index f64182d2ad6..98e7e5ba897 100644
--- a/source/blender/editors/util/numinput.c
+++ b/source/blender/editors/util/numinput.c
@@ -539,7 +539,7 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
n->unit_sys, n->unit_type[idx]);
/* Note: with angles, we always get values as radians here... */
- if (BPY_execute_string_as_number(C, str_unit_convert, false, &val)) {
+ if (BPY_execute_string_as_number(C, NULL, str_unit_convert, false, &val)) {
n->val[idx] = (float)val;
n->val_flag[idx] &= ~NUM_INVALID;
}