Browse Source

Merge pull request #46326 from Shatur95/handle-relative-paths

Handle old relative plugins paths (3.2)
Rémi Verschelde 4 years ago
parent
commit
e696e0e922
1 changed files with 5 additions and 1 deletions
  1. 5 1
      editor/editor_node.cpp

+ 5 - 1
editor/editor_node.cpp

@@ -491,7 +491,11 @@ void EditorNode::_notification(int p_what) {
 				}
 				}
 
 
 				for (int i = 0; i < addons.size(); i++) {
 				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;
 				_initializing_addons = false;
 			}
 			}