diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 866a90ff104..10dd1ed0ce6 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2925,31 +2925,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