diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-02-15 20:48:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 20:48:18 +0100 |
commit | 98b97d34df7f3ab2cafc3847358c231c3d357b40 (patch) | |
tree | 431aa6f107e860aa1e1f4ae8864f9b06e8ace169 /scene/main/timer.cpp | |
parent | 6d575873969609e6ed58dee5052d23512b104498 (diff) | |
parent | 0f5455230c8955be0c6533574bd3d5b6f50792b6 (diff) |
Merge pull request #58151 from akien-mga/notification-switch-scene
Diffstat (limited to 'scene/main/timer.cpp')
-rw-r--r-- | scene/main/timer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp index babe62f453..120b537e4f 100644 --- a/scene/main/timer.cpp +++ b/scene/main/timer.cpp @@ -43,6 +43,7 @@ void Timer::_notification(int p_what) { autostart = false; } } break; + case NOTIFICATION_INTERNAL_PROCESS: { if (!processing || timer_process_callback == TIMER_PROCESS_PHYSICS || !is_processing_internal()) { return; @@ -58,8 +59,8 @@ void Timer::_notification(int p_what) { emit_signal(SNAME("timeout")); } - } break; + case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: { if (!processing || timer_process_callback == TIMER_PROCESS_IDLE || !is_physics_processing_internal()) { return; @@ -74,7 +75,6 @@ void Timer::_notification(int p_what) { } emit_signal(SNAME("timeout")); } - } break; } } |