You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Defer call to set_break_language
This commit is contained in:
@@ -51,7 +51,7 @@ void Script::_notification(int p_what) {
|
|||||||
switch (p_what) {
|
switch (p_what) {
|
||||||
case NOTIFICATION_POSTINITIALIZE: {
|
case NOTIFICATION_POSTINITIALIZE: {
|
||||||
if (EngineDebugger::is_active()) {
|
if (EngineDebugger::is_active()) {
|
||||||
EngineDebugger::get_script_debugger()->set_break_language(get_language());
|
callable_mp(this, &Script::_set_debugger_break_language).call_deferred();
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
@@ -103,6 +103,12 @@ Dictionary Script::_get_script_constant_map() {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Script::_set_debugger_break_language() {
|
||||||
|
if (EngineDebugger::is_active()) {
|
||||||
|
EngineDebugger::get_script_debugger()->set_break_language(get_language());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int Script::get_script_method_argument_count(const StringName &p_method, bool *r_is_valid) const {
|
int Script::get_script_method_argument_count(const StringName &p_method, bool *r_is_valid) const {
|
||||||
MethodInfo mi = get_method_info(p_method);
|
MethodInfo mi = get_method_info(p_method);
|
||||||
|
|
||||||
|
|||||||
@@ -124,6 +124,8 @@ protected:
|
|||||||
TypedArray<Dictionary> _get_script_signal_list();
|
TypedArray<Dictionary> _get_script_signal_list();
|
||||||
Dictionary _get_script_constant_map();
|
Dictionary _get_script_constant_map();
|
||||||
|
|
||||||
|
void _set_debugger_break_language();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void reload_from_file() override;
|
virtual void reload_from_file() override;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user