Преглед изворни кода

Fixed error spam when selecting root in remote tree

Fixed error spam when selecting root in remote tree
DualMatrix пре 6 година
родитељ
комит
75f5fd20a1
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      editor/script_editor_debugger.cpp

+ 6 - 2
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;