summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-12-10 23:00:43 +0100
committerGitHub <noreply@github.com>2021-12-10 23:00:43 +0100
commite69fa16eb3cd4cf4a591eb4c533b9eff45f79850 (patch)
tree4015594d6e3697b88cd6e33c5a368f9c671eadd8 /modules
parent0ba7103beac97ac33247e2b0ae5253c0f0c44801 (diff)
parentf19a1e28c8caf36f131594b5370b48046d89b029 (diff)
Merge pull request #55804 from godotengine/revert-49473-fix-auto-reload-scripts
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_cache.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp
index d0e85147f1..b91677d25c 100644
--- a/modules/gdscript/gdscript_cache.cpp
+++ b/modules/gdscript/gdscript_cache.cpp
@@ -192,15 +192,7 @@ Ref<GDScript> GDScriptCache::get_full_script(const String &p_path, Error &r_erro
r_error = OK;
if (singleton->full_gdscript_cache.has(p_path)) {
- Ref<GDScript> 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<GDScript> script = get_shallow_script(p_path);