diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-19 09:16:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-19 10:31:56 +0300 |
commit | 1a7596951aafcd0f9c0f112a79c9b6e79d6ac323 (patch) | |
tree | 0621c6f79127f9216b481e8df137be14b11699d4 /source/blender/blenlib/BLI_kdopbvh.h | |
parent | 6aeb1f7f5609dc1e82b9b2d915e2ee54b3c467de (diff) |
BLI_kdopbvh: Pass center to to range callback
Useful when BLI_bvhtree_range_query callback calculates a new position to measure from.
Diffstat (limited to 'source/blender/blenlib/BLI_kdopbvh.h')
-rw-r--r-- | source/blender/blenlib/BLI_kdopbvh.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |