[3.x] Move navigation server finalize before physics server

Moves finalize_navigation_server() before physics server (and also OS in 3.x). The NavigationServer command queue can have objects from other servers like physics or visuals so it needs to be flushed before.

(cherry picked from commit 8e4f8c82c5)
This commit is contained in:
smix8 2022-12-20 11:16:47 +01:00 committed by Rémi Verschelde
parent bfee356536
commit 4500b3cd30
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -2487,9 +2487,9 @@ void Main::cleanup(bool p_force) {
memdelete(camera_server);
}
finalize_navigation_server();
OS::get_singleton()->finalize();
finalize_physics();
finalize_navigation_server();
if (packed_data) {
memdelete(packed_data);