imbuf, mathutils & readfile: floats were being implicitly promoted to doubles, adjust...
[blender.git] / source / blender / python / generic / mathutils_geometry.c
index a0991e00d07cfb209786971a2e5ac3d66afab7bf..fc821f2697a24873110fa9e46a5b8e2daadf02cc 100644 (file)
@@ -114,7 +114,7 @@ static PyObject *M_Geometry_intersect_ray_tri(PyObject *UNUSED(self), PyObject*
        /* if determinant is near zero, ray lies in plane of triangle */
        det= dot_v3v3(e1, pvec);
 
-       if (det > -0.000001 && det < 0.000001) {
+       if (det > -0.000001f && det < 0.000001f) {
                Py_RETURN_NONE;
        }