From dc3a165ae0f22a4ff36bf9c7cc7fc189c351b35a Mon Sep 17 00:00:00 2001 From: mano-wii Date: Wed, 11 Dec 2019 22:21:24 -0300 Subject: BLI_bvhtree_overlap_ex: add 'max_interactions' parameter No functional changes. Allows more performance control and is important for Weld Modifier. --- source/blender/blenlib/BLI_kdopbvh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 b305e919e76..70fa633eeac 100644 --- a/source/blender/blenlib/BLI_kdopbvh.h +++ b/source/blender/blenlib/BLI_kdopbvh.h @@ -93,7 +93,6 @@ enum { /* Use a priority queue to process nodes in the optimal order (for slow callbacks) */ BVH_OVERLAP_USE_THREADING = (1 << 0), BVH_OVERLAP_RETURN_PAIRS = (1 << 1), - BVH_OVERLAP_BREAK_ON_FIRST = (1 << 2), }; enum { /* Use a priority queue to process nodes in the optimal order (for slow callbacks) */ @@ -167,7 +166,8 @@ BVHTreeOverlap *BLI_bvhtree_overlap_ex( /* optional callback to test the overlap before adding (must be thread-safe!) */ BVHTree_OverlapCallback callback, void *userdata, - int flag); + const uint max_interactions, + const int flag); BVHTreeOverlap *BLI_bvhtree_overlap(const BVHTree *tree1, const BVHTree *tree2, unsigned int *r_overlap_tot, -- cgit v1.2.3