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>2015-11-17 08:39:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-18 00:42:26 +0300
commit18c4f1ad4045e7de1ce52751c42462d727f1de03 (patch)
tree19e51538b462716e952dd4b1bd3ff63d41369c1a /source/blender/blenlib/BLI_kdtree.h
parenta189e544ec04c0abdcdd738b8c5f9cca843eda89 (diff)
KDTree: store node references as ints (were pointers)
Diffstat (limited to 'source/blender/blenlib/BLI_kdtree.h')
-rw-r--r--source/blender/blenlib/BLI_kdtree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_kdtree.h b/source/blender/blenlib/BLI_kdtree.h
index ebf03b5bc67..a3ecfb898c3 100644
--- a/source/blender/blenlib/BLI_kdtree.h
+++ b/source/blender/blenlib/BLI_kdtree.h
@@ -50,7 +50,7 @@ void BLI_kdtree_insert(
KDTree *tree, int index,
const float co[3]) ATTR_NONNULL(1, 3);
int BLI_kdtree_find_nearest(
- KDTree *tree, const float co[3],
+ const KDTree *tree, const float co[3],
KDTreeNearest *r_nearest) ATTR_NONNULL(1, 2);
#define BLI_kdtree_find_nearest_n(tree, co, r_nearest, n) \
@@ -61,11 +61,11 @@ int BLI_kdtree_find_nearest(
/* Normal use is deprecated */
/* remove __normal functions when last users drop */
int BLI_kdtree_find_nearest_n__normal(
- KDTree *tree, const float co[3], const float nor[3],
+ const KDTree *tree, const float co[3], const float nor[3],
KDTreeNearest *r_nearest,
unsigned int n) ATTR_NONNULL(1, 2, 4);
int BLI_kdtree_range_search__normal(
- KDTree *tree, const float co[3], const float nor[3],
+ const KDTree *tree, const float co[3], const float nor[3],
KDTreeNearest **r_nearest,
float range) ATTR_NONNULL(1, 2, 4) ATTR_WARN_UNUSED_RESULT;