From 75f5fd20a1048e2a5d0fd6b4de34eac83f5cff2c Mon Sep 17 00:00:00 2001 From: DualMatrix Date: Sat, 29 Sep 2018 01:03:50 +0200 Subject: [PATCH] Fixed error spam when selecting root in remote tree Fixed error spam when selecting root in remote tree --- editor/script_editor_debugger.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index f13d3f52874..74478cc4d7f 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -502,8 +502,12 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da String str = var; var = str.substr(4, str.length()); - if (str.begins_with("PATH")) - var = ResourceLoader::load(var); + if (str.begins_with("PATH")) { + if (String(var).empty()) + var = RES(); + else + var = ResourceLoader::load(var); + } } debugObj->prop_values[pinfo.name] = var;