From c7ed47234e51fd849280c5b30cac7f7ccfda2c3f Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Mon, 19 Jan 2026 20:36:31 -0500 Subject: [PATCH] Delegate reloading to `ScriptLanguage` --- core/object/script_language.cpp | 25 +++++-------------------- doc/classes/ScriptLanguageExtension.xml | 2 ++ 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index 4689916cc2..9da2e5561a 100644 --- a/core/object/script_language.cpp +++ b/core/object/script_language.cpp @@ -189,27 +189,12 @@ void Script::_bind_methods() { void Script::reload_from_file() { #ifdef TOOLS_ENABLED - // Replicates how the ScriptEditor reloads script resources, which generally handles it. - // However, when scripts are to be reloaded but aren't open in the internal editor, we go through here instead. - const Ref