Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-10-20 06:03:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-20 06:03:22 +0300
commit959a58da9e4d23be2738b6979ec208f05468f50c (patch)
treeafebcc5b122e04adf8ee0ba1d5e84fadfa1ef665 /source/blender/python
parentcb957fd8e0e2e0d0dbbebc3e7e3fcc5bfa8b51a8 (diff)
Cleanup: redundant casts
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/mathutils/mathutils_bvhtree.c2
-rw-r--r--source/blender/python/mathutils/mathutils_geometry.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c b/source/blender/python/mathutils/mathutils_bvhtree.c
index 42771d93b4e..e1b414d9ba1 100644
--- a/source/blender/python/mathutils/mathutils_bvhtree.c
+++ b/source/blender/python/mathutils/mathutils_bvhtree.c
@@ -872,7 +872,7 @@ static PyObject *C_BVHTree_FromPolygons(PyObject *UNUSED(cls), PyObject *args, P
mul_v2_m3v3(proj_coords[j], axis_mat, coords[plink->poly[j]]);
}
- BLI_polyfill_calc_arena((const float (*)[2])proj_coords, plink->len, 1, tris_offset, pf_arena);
+ BLI_polyfill_calc_arena(proj_coords, plink->len, 1, tris_offset, pf_arena);
j = plink->len - 2;
while (j--) {
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index 1dc18dbe509..72f92d210d7 100644
--- a/source/blender/python/mathutils/mathutils_geometry.c
+++ b/source/blender/python/mathutils/mathutils_geometry.c
@@ -1430,7 +1430,7 @@ static PyObject *M_Geometry_box_fit_2d(PyObject *UNUSED(self), PyObject *pointli
if (len) {
/* Non Python function */
- angle = BLI_convexhull_aabb_fit_points_2d((const float (*)[2])points, len);
+ angle = BLI_convexhull_aabb_fit_points_2d(points, len);
PyMem_Free(points);
}
@@ -1468,7 +1468,7 @@ static PyObject *M_Geometry_convex_hull_2d(PyObject *UNUSED(self), PyObject *poi
index_map = MEM_mallocN(sizeof(*index_map) * len * 2, __func__);
/* Non Python function */
- len_ret = BLI_convexhull_2d((const float (*)[2])points, len, index_map);
+ len_ret = BLI_convexhull_2d(points, len, index_map);
ret = PyList_New(len_ret);
for (i = 0; i < len_ret; i++) {