diff options
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/mathutils/mathutils_bvhtree.c | 2 | ||||
-rw-r--r-- | source/blender/python/mathutils/mathutils_geometry.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c b/source/blender/python/mathutils/mathutils_bvhtree.c index 79ed9e68420..b00dbacad15 100644 --- a/source/blender/python/mathutils/mathutils_bvhtree.c +++ b/source/blender/python/mathutils/mathutils_bvhtree.c @@ -434,7 +434,7 @@ static void py_bvhtree_nearest_point_range_cb(void *userdata, struct PyBVH_RangeData *data = userdata; PyBVHTree *self = data->self; - const float(*coords)[3] = (const float(*)[3])self->coords; + const float(*coords)[3] = self->coords; const uint *tri = self->tris[index]; const float *tri_co[3] = {coords[tri[0]], coords[tri[1]], coords[tri[2]]}; float nearest_tmp[3], dist_sq; diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c index 4b09c08f62c..1304447be65 100644 --- a/source/blender/python/mathutils/mathutils_geometry.c +++ b/source/blender/python/mathutils/mathutils_geometry.c @@ -349,7 +349,7 @@ static PyObject *M_Geometry_normal(PyObject *UNUSED(self), PyObject *args) goto finally; } - normal_poly_v3(n, (const float(*)[3])coords, coords_len); + normal_poly_v3(n, coords, coords_len); ret = Vector_CreatePyObject(n, 3, NULL); finally: |