summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-22 22:45:52 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-22 22:45:52 +0100
commitae7b16c80bd5407cdd2e71e9c4c295b8827f9e26 (patch)
tree1f7d532a420ff8be4a401ac4e7b2038f8a64673c
parentd66f6b3b04f4d9e01b21466cb4c6497fbad204d8 (diff)
parent554b55ae7430ee65240cac71ec86bf1c37bca5cc (diff)
Merge pull request #73776 from vnen/addon-load-script-without-cache
Load script for addons without cache
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index cf1c1016fa..5e8a4e230e 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -3526,7 +3526,7 @@ void EditorNode::set_addon_plugin_enabled(const String &p_addon, bool p_enabled,
// Only try to load the script if it has a name. Else, the plugin has no init script.
if (script_path.length() > 0) {
script_path = addon_path.get_base_dir().path_join(script_path);
- scr = ResourceLoader::load(script_path);
+ scr = ResourceLoader::load(script_path, "Script", ResourceFormatLoader::CACHE_MODE_IGNORE);
if (scr.is_null()) {
show_warning(vformat(TTR("Unable to load addon script from path: '%s'."), script_path));