summaryrefslogtreecommitdiff
path: root/core/math/bvh_misc.inc
diff options
context:
space:
mode:
authorlawnjelly <lawnjelly@gmail.com>2022-02-04 16:46:10 +0000
committerlawnjelly <lawnjelly@gmail.com>2022-02-04 16:51:21 +0000
commitf8eaab5b4758dd2a1339e1b6abf5e9509ccba35c (patch)
treeb4031777f60fcf24227d57b46d7ec6c9ed132a61 /core/math/bvh_misc.inc
parent8495be9cece924b22a8148ce335d04836027bc40 (diff)
BVH - Sync BVH with 3.x
Templated mask checks and generic NUM_TREES Fix leaking leaves
Diffstat (limited to 'core/math/bvh_misc.inc')
-rw-r--r--core/math/bvh_misc.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/math/bvh_misc.inc b/core/math/bvh_misc.inc
index 71aa0e4fe0..9b35a1d36d 100644
--- a/core/math/bvh_misc.inc
+++ b/core/math/bvh_misc.inc
@@ -1,11 +1,7 @@
int _handle_get_tree_id(BVHHandle p_handle) const {
if (USE_PAIRS) {
- int tree = 0;
- if (_extra[p_handle.id()].pairable) {
- tree = 1;
- }
- return tree;
+ return _extra[p_handle.id()].tree_id;
}
return 0;
}