diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-07 17:11:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-07 17:23:09 +0300 |
commit | 72d2355af525664671ed6089b31d5bbe126cd865 (patch) | |
tree | 2960526bd8f15e465193fcfe0a5b6c9f2a314e0b /source/blender/python | |
parent | dfac5a63bd1327e7748758267c51815e0ee28607 (diff) |
Cleanup: remove redundant cast, use const casts
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: |