From f8eaab5b4758dd2a1339e1b6abf5e9509ccba35c Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Fri, 4 Feb 2022 16:46:10 +0000 Subject: BVH - Sync BVH with 3.x Templated mask checks and generic NUM_TREES Fix leaking leaves --- servers/physics_3d/godot_collision_object_3d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/physics_3d/godot_collision_object_3d.h') diff --git a/servers/physics_3d/godot_collision_object_3d.h b/servers/physics_3d/godot_collision_object_3d.h index 0178838a25..515b945564 100644 --- a/servers/physics_3d/godot_collision_object_3d.h +++ b/servers/physics_3d/godot_collision_object_3d.h @@ -169,7 +169,7 @@ public: return p_other->collision_layer & collision_mask; } - _FORCE_INLINE_ bool interacts_with(GodotCollisionObject3D *p_other) const { + _FORCE_INLINE_ bool interacts_with(const GodotCollisionObject3D *p_other) const { return collision_layer & p_other->collision_mask || p_other->collision_layer & collision_mask; } -- cgit v1.2.3