KDTree: deprecate 'normal' argument
[blender.git] / source / blender / python / mathutils / mathutils_kdtree.c
index d48ab8037400b6987ca10b36d7e25826b8ca55a5..0833d522a60b1f6f03da9510388d5bed4bf1dee6 100644 (file)
@@ -161,7 +161,7 @@ static PyObject *py_kdtree_insert(PyKDTree *self, PyObject *args, PyObject *kwar
                return NULL;
        }
 
-       BLI_kdtree_insert(self->obj, index, co, NULL);
+       BLI_kdtree_insert(self->obj, index, co);
        self->count++;
 
        Py_RETURN_NONE;
@@ -213,7 +213,7 @@ static PyObject *py_kdtree_find(PyKDTree *self, PyObject *args, PyObject *kwargs
 
        nearest.index = -1;
 
-       BLI_kdtree_find_nearest(self->obj, co, NULL, &nearest);
+       BLI_kdtree_find_nearest(self->obj, co, &nearest);
 
        return kdtree_nearest_to_py_and_check(&nearest);
 }
@@ -261,7 +261,7 @@ static PyObject *py_kdtree_find_n(PyKDTree *self, PyObject *args, PyObject *kwar
 
        nearest = MEM_mallocN(sizeof(KDTreeNearest) * n, __func__);
 
-       found = BLI_kdtree_find_nearest_n(self->obj, co, NULL, nearest, n);
+       found = BLI_kdtree_find_nearest_n(self->obj, co, nearest, n);
 
        py_list = PyList_New(found);
 
@@ -316,7 +316,7 @@ static PyObject *py_kdtree_find_range(PyKDTree *self, PyObject *args, PyObject *
                return NULL;
        }
 
-       found = BLI_kdtree_range_search(self->obj, co, NULL, &nearest, radius);
+       found = BLI_kdtree_range_search(self->obj, co, &nearest, radius);
 
        py_list = PyList_New(found);