C99/C++11: replace deprecated finite() by isfinite().
[blender.git] / source / blender / python / intern / bpy_driver.c
index 9cd6fe3da91edd05e14e1a96fd24fb2b629d57c9..9b477e384dbf467810a846e52a51343605cbc589 100644 (file)
@@ -347,7 +347,7 @@ float BPY_driver_exec(ChannelDriver *driver, const float evaltime)
        if (use_gil)
                PyGILState_Release(gilstate);
 
-       if (finite(result)) {
+       if (isfinite(result)) {
                return (float)result;
        }
        else {