Fixed error spam when selecting root in remote tree

Fixed error spam when selecting root in remote tree
This commit is contained in:
DualMatrix 2018-09-29 01:03:50 +02:00
parent d4df4c1475
commit 75f5fd20a1

View file

@ -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;