summaryrefslogtreecommitdiff
path: root/core/object/script_language.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-16 15:26:02 +0100
committerGitHub <noreply@github.com>2022-02-16 15:26:02 +0100
commitb5c0a892d45b1a9df10aaf0f468252925ea2a4b9 (patch)
treeca006460a31bf1ec8031e40952394a39e824d5f0 /core/object/script_language.cpp
parenteeda603355bdaf76d138d2646b3e4316924efe29 (diff)
parentdcd2a92af3cc85b50ee2c02dc64589da6d429e8c (diff)
Merge pull request #58163 from jmb462/notification-chunk-A
Diffstat (limited to 'core/object/script_language.cpp')
-rw-r--r--core/object/script_language.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp
index 9fec7c397d..b14296b815 100644
--- a/core/object/script_language.cpp
+++ b/core/object/script_language.cpp
@@ -46,10 +46,12 @@ bool ScriptServer::languages_finished = false;
ScriptEditRequestFunction ScriptServer::edit_request_func = nullptr;
void Script::_notification(int p_what) {
- if (p_what == NOTIFICATION_POSTINITIALIZE) {
- if (EngineDebugger::is_active()) {
- EngineDebugger::get_script_debugger()->set_break_language(get_language());
- }
+ switch (p_what) {
+ case NOTIFICATION_POSTINITIALIZE: {
+ if (EngineDebugger::is_active()) {
+ EngineDebugger::get_script_debugger()->set_break_language(get_language());
+ }
+ } break;
}
}