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>2014-03-18 02:05:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-18 02:14:47 +0400
commit7da21752716a0e9e6e6ad8ccbda20fb1c5e8e123 (patch)
treed72216f3cdf2e5887282fbce2e0eec28d025392d /source/blender/python
parenta861e5572a70111bbe3ae84d82595eddc43b7d88 (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')
-rw-r--r--source/blender/python/mathutils/mathutils_kdtree.c8
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);