Merge pull request #73776 from vnen/addon-load-script-without-cache
Load script for addons without cache
This commit is contained in:
commit
ae7b16c80b
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue