Allow live reloading of built-in scripts

This commit is contained in:
kobewi committed 2024-07-06 23:43:37 +02:00
1 parent b97110cd30
commit 5636518358
4 files changed
+32 -4

No files matched your search

+6 -2
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);
}
}
}
}