From 0a874101fda39623344cbb547f09a57864601910 Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Mon, 22 Feb 2021 20:26:59 +0200 Subject: [PATCH] Handle old relative plugin paths --- editor/editor_node.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index c21f32b0e5f..478fd8ea07d 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -491,7 +491,11 @@ void EditorNode::_notification(int p_what) { } for (int i = 0; i < addons.size(); i++) { - set_addon_plugin_enabled(addons[i], true); + if (addons[i].begins_with("res://")) { + set_addon_plugin_enabled(addons[i], true); + } else { + set_addon_plugin_enabled("res://addons/" + addons[i] + "/plugin.cfg", true); + } } _initializing_addons = false; }