mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Port existing _notification code to use switch statements (part 1/3)
This commit is contained in:
parent
f5b9cbaff6
commit
dcd2a92af3
39 changed files with 1836 additions and 1666 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue