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>2018-05-15 00:12:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-15 00:12:51 +0300
commite159ec8bc1871da8766b319fcda5c76eff1c0a48 (patch)
treef21e0d7de817d38976b4663af5abb7782e673e6e /source/blender/blenlib/BLI_kdopbvh.h
parentbf7c46cae0a418776f381d33080988b11deabedf (diff)
Cleanup: compiler warnings, use const
Diffstat (limited to 'source/blender/blenlib/BLI_kdopbvh.h')
-rw-r--r--source/blender/blenlib/BLI_kdopbvh.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_kdopbvh.h b/source/blender/blenlib/BLI_kdopbvh.h
index cef525d0592..76c3b6ef3fd 100644
--- a/source/blender/blenlib/BLI_kdopbvh.h
+++ b/source/blender/blenlib/BLI_kdopbvh.h
@@ -40,6 +40,8 @@ extern "C" {
#endif
struct BVHTree;
+struct DistProjectedAABBPrecalc;
+
typedef struct BVHTree BVHTree;
#define USE_KDOPBVH_WATERTIGHT
@@ -102,9 +104,10 @@ typedef bool (*BVHTree_OverlapCallback)(void *userdata, int index_a, int index_b
typedef void (*BVHTree_RangeQuery)(void *userdata, int index, const float co[3], float dist_sq);
/* callback to find nearest projected */
-typedef void (*BVHTree_NearestProjectedCallback)(void *userdata, int index,
- struct DistProjectedAABBPrecalc *precalc,
- BVHTreeNearest *nearest);
+typedef void (*BVHTree_NearestProjectedCallback)(
+ void *userdata, int index,
+ const struct DistProjectedAABBPrecalc *precalc,
+ BVHTreeNearest *nearest);
/* callbacks to BLI_bvhtree_walk_dfs */