From 18c4f1ad4045e7de1ce52751c42462d727f1de03 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 Nov 2015 16:39:29 +1100 Subject: KDTree: store node references as ints (were pointers) --- source/blender/blenlib/BLI_kdtree.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenlib/BLI_kdtree.h') 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; -- cgit v1.2.3