From d10cd9961346e3d74316179bf21158f8a11c2f4a Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Tue, 17 Jan 2023 14:04:19 +0100 Subject: [PATCH] Make physics servers `end_sync` on exit --- main/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index 7ba5ffab2a6..00c6b1fecde 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -3030,6 +3030,9 @@ bool Main::iteration() { PhysicsServer2D::get_singleton()->flush_queries(); if (OS::get_singleton()->get_main_loop()->physics_process(physics_step * time_scale)) { + PhysicsServer3D::get_singleton()->end_sync(); + PhysicsServer2D::get_singleton()->end_sync(); + exit = true; break; }