diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 1b0ffd4c894..311f8b295b8 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2921,31 +2921,35 @@ void EditorNode::set_addon_plugin_enabled(const String &p_addon, bool p_enabled, return; } - String path = cf->get_value("plugin", "script"); - path = String("res://addons").plus_file(p_addon).plus_file(path); + String script_path = cf->get_value("plugin", "script"); + Ref