C99/C++11: replace deprecated finite() by isfinite().
[blender.git] / source / blender / editors / transform / transform_constraints.c
index beeba7cf10f228d21115094f70f7cae106748810..13cc0c227788bbc5420b839ae911af03fe7c8b9a 100644 (file)
@@ -267,9 +267,9 @@ static void axisProjection(TransInfo *t, const float axis[3], const float in[3],
 
                        /* possible some values become nan when
                         * viewpoint and object are both zero */
-                       if (!finite(out[0])) out[0] = 0.0f;
-                       if (!finite(out[1])) out[1] = 0.0f;
-                       if (!finite(out[2])) out[2] = 0.0f;
+                       if (!isfinite(out[0])) out[0] = 0.0f;
+                       if (!isfinite(out[1])) out[1] = 0.0f;
+                       if (!isfinite(out[2])) out[2] = 0.0f;
                }
        }
 }