1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #113622 from mihe/jolt/no-nested-mt-flushes

Remove call to `PhysicsServer3D` from Jolt Physics implementation
This commit is contained in:
Rémi Verschelde
2025-12-05 14:21:06 +01:00

View File

@@ -30,6 +30,7 @@
#include "jolt_joint_3d.h"
#include "../jolt_physics_server_3d.h"
#include "../jolt_project_settings.h"
#include "../misc/jolt_type_conversions.h"
#include "../objects/jolt_body_3d.h"
@@ -209,7 +210,7 @@ void JoltJoint3D::set_collision_disabled(bool p_disabled) {
return;
}
PhysicsServer3D *physics_server = PhysicsServer3D::get_singleton();
JoltPhysicsServer3D *physics_server = JoltPhysicsServer3D::get_singleton();
if (collision_disabled) {
physics_server->body_add_collision_exception(body_a->get_rid(), body_b->get_rid());