diff options
| author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-31 20:14:34 -0500 |
|---|---|---|
| committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-31 20:14:34 -0500 |
| commit | 194ddfd0c469bf1d554caf62f45a9736333d2c44 (patch) | |
| tree | 44b21cfc81b4da1c2a9dd54cb740e259c3fb1552 /scene/3d/navigation_obstacle_3d.cpp | |
| parent | e84fae43bed7a7bc992fb276857bcb7140480a54 (diff) | |
| parent | 16524a8a01408480ce2063461c8c042bc4eb3fa8 (diff) | |
| download | redot-engine-194ddfd0c469bf1d554caf62f45a9736333d2c44.tar.gz | |
Merge pull request #97257 from YeldhamDev/guess_godot_is_unity_after_all
Add "Game" editor for better runtime debugging
Diffstat (limited to 'scene/3d/navigation_obstacle_3d.cpp')
| -rw-r--r-- | scene/3d/navigation_obstacle_3d.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/3d/navigation_obstacle_3d.cpp b/scene/3d/navigation_obstacle_3d.cpp index f2ac8f789c..2eb04a0054 100644 --- a/scene/3d/navigation_obstacle_3d.cpp +++ b/scene/3d/navigation_obstacle_3d.cpp @@ -119,6 +119,7 @@ void NavigationObstacle3D::_notification(int p_what) { #endif // DEBUG_ENABLED } break; + case NOTIFICATION_SUSPENDED: case NOTIFICATION_PAUSED: { if (!can_process()) { map_before_pause = map_current; @@ -130,6 +131,13 @@ void NavigationObstacle3D::_notification(int p_what) { NavigationServer3D::get_singleton()->obstacle_set_paused(obstacle, !can_process()); } break; + case NOTIFICATION_UNSUSPENDED: { + if (get_tree()->is_paused()) { + break; + } + [[fallthrough]]; + } + case NOTIFICATION_UNPAUSED: { if (!can_process()) { map_before_pause = map_current; |
