Merge pull request #71557 from mihe/physics-end-sync

Make physics servers `end_sync` on exit
This commit is contained in:
Rémi Verschelde 2023-01-18 08:35:52 +01:00
commit 40c017f9c0
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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;
}