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
1 changed files with 6 additions and 2 deletions

View File

@ -502,8 +502,12 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
String str = var; String str = var;
var = str.substr(4, str.length()); var = str.substr(4, str.length());
if (str.begins_with("PATH")) if (str.begins_with("PATH")) {
var = ResourceLoader::load(var); if (String(var).empty())
var = RES();
else
var = ResourceLoader::load(var);
}
} }
debugObj->prop_values[pinfo.name] = var; debugObj->prop_values[pinfo.name] = var;