From 109cbdf2e1b609e93270100239906a8e17c64ab5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 20 Mar 2019 00:46:33 +1100 Subject: Cleanup: use BLI_kdtree_3d prefix Use prefix now there isn't only the 3d version. --- source/blender/editors/util/select_utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/util') diff --git a/source/blender/editors/util/select_utils.c b/source/blender/editors/util/select_utils.c index 80b103e0c4b..b2784aca7fa 100644 --- a/source/blender/editors/util/select_utils.c +++ b/source/blender/editors/util/select_utils.c @@ -97,7 +97,7 @@ int ED_select_similar_compare_float(const float delta, const float thresh, const } } -bool ED_select_similar_compare_float_tree(const KDTree *tree, const float length, const float thresh, const int compare) +bool ED_select_similar_compare_float_tree(const KDTree_3d *tree, const float length, const float thresh, const int compare) { /* Length of the edge we want to compare against. */ float nearest_edge_length; @@ -123,9 +123,9 @@ bool ED_select_similar_compare_float_tree(const KDTree *tree, const float length return false; } - KDTreeNearest nearest; + KDTreeNearest_3d nearest; float dummy[3] = {nearest_edge_length, 0.0f, 0.0f}; - if (BLI_kdtree_find_nearest(tree, dummy, &nearest) != -1) { + if (BLI_kdtree_3d_find_nearest(tree, dummy, &nearest) != -1) { float delta = length - nearest.co[0]; return ED_select_similar_compare_float(delta, thresh, compare); } -- cgit v1.2.3