summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorDualMatrix <piet.goris@gmail.com>2018-09-29 01:03:50 +0200
committerDualMatrix <piet.goris@gmail.com>2018-09-29 01:03:50 +0200
commit75f5fd20a1048e2a5d0fd6b4de34eac83f5cff2c (patch)
treeb4ad30c871d9d1d033695f1142677ef201cb461f /editor
parentd4df4c1475e5aedec43c7cfae752c1136ef22792 (diff)
Fixed error spam when selecting root in remote tree
Fixed error spam when selecting root in remote tree
Diffstat (limited to 'editor')
-rw-r--r--editor/script_editor_debugger.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index f13d3f5287..74478cc4d7 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;