Merge pull request #22617 from Chaosus/fix_path

Fix script path for warnings
This commit is contained in:
Rémi Verschelde 2018-10-02 13:47:24 +02:00 committed by GitHub
commit 4e3db841af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -726,9 +726,10 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
String source(err[5]);
bool source_is_project_file = source.begins_with("res://");
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];
if (method.length() > 0)
txt += " @ " + method + "()";