Fix built-in script live reloading
This commit is contained in:
parent
78d91947f6
commit
ad4fb8c1df
2 changed files with 12 additions and 4 deletions
|
|
@ -1119,14 +1119,14 @@ void ScriptEditor::_mark_built_in_scripts_as_saved(const String &p_parent_path)
|
|||
}
|
||||
|
||||
Ref<Resource> edited_res = se->get_edited_resource();
|
||||
|
||||
if (!edited_res->is_built_in()) {
|
||||
continue; // External script, who cares.
|
||||
}
|
||||
|
||||
if (edited_res->get_path().get_slice("::", 0) == p_parent_path) {
|
||||
se->tag_saved_version();
|
||||
if (edited_res->get_path().get_slice("::", 0) != p_parent_path) {
|
||||
continue; // Wrong scene.
|
||||
}
|
||||
se->tag_saved_version();
|
||||
|
||||
Ref<Script> scr = edited_res;
|
||||
if (scr.is_valid()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue