From 8467cf9e9430870497978d86a544ca0f494cba6c Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 2 Sep 2023 12:57:35 +0200 Subject: [PATCH] Backported from godot4: Keep NavigationServer active while SceneTree is paused. - smix8 https://github.com/godotengine/godot/commit/4b0dee080e5eba37dd43346c6c02bb7dce2b39e7 --- scene/main/scene_tree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 226ee1770..2dcded0bd 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1137,9 +1137,10 @@ void SceneTree::set_pause(bool p_enabled) { return; } pause = p_enabled; - NavigationServer::get_singleton()->set_active(!p_enabled); + PhysicsServer::get_singleton()->set_active(!p_enabled); Physics2DServer::get_singleton()->set_active(!p_enabled); + if (get_root()) { get_root()->propagate_notification(p_enabled ? Node::NOTIFICATION_PAUSED : Node::NOTIFICATION_UNPAUSED); }