Cleanup: use const casts in mathutils API

This commit is contained in:
2021-05-18 14:13:20 +10:00
parent 4dfbaa34c9
commit 8a26fec6ea
4 changed files with 31 additions and 31 deletions

View File

@@ -52,7 +52,7 @@ static void kdtree_nearest_to_py_tuple(const KDTreeNearest_3d *nearest, PyObject
BLI_assert(PyTuple_GET_SIZE(py_retval) == 3);
PyTuple_SET_ITEMS(py_retval,
Vector_CreatePyObject((float *)nearest->co, 3, NULL),
Vector_CreatePyObject(nearest->co, 3, NULL),
PyLong_FromLong(nearest->index),
PyFloat_FromDouble(nearest->dist));
}