diff options
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.c')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c index dd32c913f78..7f13a7a4d94 100644 --- a/source/blender/python/generic/py_capi_utils.c +++ b/source/blender/python/generic/py_capi_utils.c @@ -45,7 +45,7 @@ #ifdef _WIN32 #include "BLI_path_util.h" /* BLI_setenv() */ -#include "BLI_math_base.h" /* finite() */ +#include "BLI_math_base.h" /* isfinite() */ #endif /* array utility function */ @@ -1026,7 +1026,7 @@ bool PyC_RunString_AsNumber(const char *expr, double *value, const char *filenam if (val == -1 && PyErr_Occurred()) { ok = false; } - else if (!finite(val)) { + else if (!isfinite(val)) { *value = 0.0; } else { |