From 1a7596951aafcd0f9c0f112a79c9b6e79d6ac323 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 19 Mar 2016 17:16:50 +1100 Subject: BLI_kdopbvh: Pass center to to range callback Useful when BLI_bvhtree_range_query callback calculates a new position to measure from. --- source/blender/blenlib/BLI_kdopbvh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_kdopbvh.h') diff --git a/source/blender/blenlib/BLI_kdopbvh.h b/source/blender/blenlib/BLI_kdopbvh.h index f1ef1d9f9b9..be792669ef1 100644 --- a/source/blender/blenlib/BLI_kdopbvh.h +++ b/source/blender/blenlib/BLI_kdopbvh.h @@ -102,7 +102,7 @@ typedef void (*BVHTree_NearestToRayCallback)(void *userdata, int index, const BV typedef bool (*BVHTree_OverlapCallback)(void *userdata, int index_a, int index_b, int thread); /* callback to range search query */ -typedef void (*BVHTree_RangeQuery)(void *userdata, int index, float dist_sq); +typedef void (*BVHTree_RangeQuery)(void *userdata, int index, const float co[3], float dist_sq); /* callbacks to BLI_bvhtree_walk_dfs */ -- cgit v1.2.3