You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Properly reload built-in tool scripts
This commit is contained in:
@@ -1015,6 +1015,11 @@ void ScriptEditor::_scene_saved_callback(const String &p_path) {
|
||||
if (edited_res->get_path().get_slice("::", 0) == p_path) {
|
||||
se->tag_saved_version();
|
||||
}
|
||||
|
||||
Ref<Script> scr = edited_res;
|
||||
if (scr.is_valid() && scr->is_tool()) {
|
||||
scr->reload(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user