diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-18 02:05:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-18 02:14:47 +0400 |
commit | 7da21752716a0e9e6e6ad8ccbda20fb1c5e8e123 (patch) | |
tree | d72216f3cdf2e5887282fbce2e0eec28d025392d /source/blender/python/mathutils/mathutils_kdtree.c | |
parent | a861e5572a70111bbe3ae84d82595eddc43b7d88 (diff) |
KDTree: deprecate 'normal' argument
Normals for each kdtree node were allocated but never used,
and search args only use in particles/boids code.
Diffstat (limited to 'source/blender/python/mathutils/mathutils_kdtree.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_kdtree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/mathutils/mathutils_kdtree.c b/source/blender/python/mathutils/mathutils_kdtree.c index d48ab803740..0833d522a60 100644 --- a/source/blender/python/mathutils/mathutils_kdtree.c +++ b/source/blender/python/mathutils/mathutils_kdtree.c @@ -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); |