mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Make physics servers end_sync
on exit
This commit is contained in:
parent
caacade569
commit
d10cd99613
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user