From f19a1e28c8caf36f131594b5370b48046d89b029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 10 Dec 2021 22:40:20 +0100 Subject: [PATCH] Revert "Fix auto reload scripts on external change" --- modules/gdscript/gdscript_cache.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp index d0e85147f15..b91677d25cb 100644 --- a/modules/gdscript/gdscript_cache.cpp +++ b/modules/gdscript/gdscript_cache.cpp @@ -192,15 +192,7 @@ Ref GDScriptCache::get_full_script(const String &p_path, Error &r_erro r_error = OK; if (singleton->full_gdscript_cache.has(p_path)) { - Ref script = singleton->full_gdscript_cache[p_path]; -#ifdef TOOLS_ENABLED - uint64_t mt = FileAccess::get_modified_time(p_path); - if (script->get_last_modified_time() == mt) { - return script; - } -#else - return script; -#endif //TOOLS_ENABLED + return singleton->full_gdscript_cache[p_path]; } Ref script = get_shallow_script(p_path);