mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 03:46:50 +01:00
Backported from godot4: Keep NavigationServer active while SceneTree is paused.
- smix8
4b0dee080e
This commit is contained in:
parent
d1d8f8505e
commit
8467cf9e94
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user