فهرست منبع

Fix script path for warnings

Chaosus 7 سال پیش
والد
کامیت
54d44f7076
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      editor/script_editor_debugger.cpp

+ 3 - 2
editor/script_editor_debugger.cpp

@@ -726,9 +726,10 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
 		String source(err[5]);
 		String source(err[5]);
 		bool source_is_project_file = source.begins_with("res://");
 		bool source_is_project_file = source.begins_with("res://");
 		if (source_is_project_file)
 		if (source_is_project_file)
-			source = source.get_file();
+			txt = source.get_file() + ":" + String(err[6]);
+		else
+			txt = source + ":" + String(err[6]);
 
 
-		txt = source + ":" + String(err[6]);
 		String method = err[4];
 		String method = err[4];
 		if (method.length() > 0)
 		if (method.length() > 0)
 			txt += " @ " + method + "()";
 			txt += " @ " + method + "()";