From 0862abf68bf1c9601080d4fb142c8f7edc6b300f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 17 Apr 2011 12:47:20 +0000 Subject: change unit evaluation only to do try the units replacements if evaluating with python fails, in rare cases its possible a valid python expression could get units applied to it. --- source/blender/python/BPY_extern.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/BPY_extern.h') diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 7901957e5e4..e8796a6f8dd 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -86,7 +86,7 @@ void BPY_modules_load_user(struct bContext *C); void BPY_driver_reset(void); float BPY_driver_exec(struct ChannelDriver *driver); -int BPY_button_exec(struct bContext *C, const char *expr, double *value); +int BPY_button_exec(struct bContext *C, const char *expr, double *value, const short verbose); int BPY_string_exec(struct bContext *C, const char *expr); void BPY_DECREF(void *pyob_ptr); /* Py_DECREF() */ -- cgit v1.2.3