summaryrefslogtreecommitdiff
path: root/core/math/bvh_debug.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_debug.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_debug.inc')
-rw-r--r--core/math/bvh_debug.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/bvh_debug.inc b/core/math/bvh_debug.inc
index 55db794ee3..ea31a154a3 100644
--- a/core/math/bvh_debug.inc
+++ b/core/math/bvh_debug.inc
@@ -6,12 +6,12 @@ void _debug_recursive_print_tree(int p_tree_id) const {
}
String _debug_aabb_to_string(const BVHABB_CLASS &aabb) const {
- Point size = aabb.calculate_size();
+ POINT size = aabb.calculate_size();
String sz;
float vol = 0.0;
- for (int i = 0; i < Point::AXES_COUNT; ++i) {
+ for (int i = 0; i < POINT::AXIS_COUNT; ++i) {
sz += "(";
sz += itos(aabb.min[i]);
sz += " ~ ";