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.

This commit is contained in:
2011-04-17 12:47:20 +00:00
parent d00f664ee0
commit 0862abf68b
3 changed files with 30 additions and 15 deletions

View File

@@ -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() */