diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-06-17 18:03:40 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-06-17 18:03:40 +0400 |
commit | f94b87bbb89b2350be2f5b26c2afb2372fd9d99c (patch) | |
tree | a9f96351ba4b8e1e21f1d64c14e861d948c8358e /source/blender/python/generic/py_capi_utils.h | |
parent | ab5f4c4dfad3880f60c8555437aeb0c9ba85cd1e (diff) |
New python API for units handling.
Exposes all supported unit systems & types, and to_value()/to_string() functions.
Reviewed and enhanced by CampbellBarton, many thanks!
Differential Revision: https://developer.blender.org/D416
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.h')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/generic/py_capi_utils.h b/source/blender/python/generic/py_capi_utils.h index 0afc4dd98d9..559a8e15678 100644 --- a/source/blender/python/generic/py_capi_utils.h +++ b/source/blender/python/generic/py_capi_utils.h @@ -73,4 +73,6 @@ int PyC_FlagSet_ValueFromID(PyC_FlagSet *item, const char *identifier, int int PyC_FlagSet_ToBitfield(PyC_FlagSet *items, PyObject *value, int *r_value, const char *error_prefix); PyObject *PyC_FlagSet_FromBitfield(PyC_FlagSet *items, int flag); +int PyC_RunString_AsNumber(const char *expr, double *value, const char *filename); + #endif /* __PY_CAPI_UTILS_H__ */ |