From ceb61fb784e42f1ffb323e0fc4fee7515fdd3b34 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 15 Aug 2019 10:40:22 -0700 Subject: [PATCH] Allow plugins to not have an init script --- editor/editor_node.cpp | 44 +++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 20 deletions(-) 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