1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #94012 from KoBeWi/reload_everything_to_update_one_line

Allow live reloading of built-in scripts
This commit is contained in:
Rémi Verschelde
2024-08-28 00:11:53 +02:00
4 changed files with 32 additions and 4 deletions

View File

@@ -1079,8 +1079,12 @@ void ScriptEditor::_mark_built_in_scripts_as_saved(const String &p_parent_path)
}
Ref<Script> scr = edited_res;
if (scr.is_valid() && scr->is_tool()) {
scr->reload(true);
if (scr.is_valid()) {
trigger_live_script_reload(scr->get_path());
if (scr->is_tool()) {
scr->reload(true);
}
}
}
}