C99/C++11: replace deprecated finite() by isfinite().
[blender.git] / source / blender / python / mathutils / mathutils_Quaternion.c
index ea5732966b2218f375c46c0a33d9b996b7eaf479..71b3cf8ddac354fa12f27913b59ed2d9728cda09 100644 (file)
@@ -1165,9 +1165,9 @@ static void quat__axis_angle_sanitize(float axis[3], float *angle)
 {
        if (axis) {
                if (is_zero_v3(axis) ||
-                   !finite(axis[0]) ||
-                   !finite(axis[1]) ||
-                   !finite(axis[2]))
+                   !isfinite(axis[0]) ||
+                   !isfinite(axis[1]) ||
+                   !isfinite(axis[2]))
                {
                        axis[0] = 1.0f;
                        axis[1] = 0.0f;
@@ -1182,7 +1182,7 @@ static void quat__axis_angle_sanitize(float axis[3], float *angle)
        }
 
        if (angle) {
-               if (!finite(*angle)) {
+               if (!isfinite(*angle)) {
                        *angle = 0.0f;
                }
        }