summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2018-10-02 12:59:52 +0300
committerChaosus <chaosus89@gmail.com>2018-10-02 13:07:55 +0300
commit54d44f707610304c7a5c3529c22cfa4a85bfa053 (patch)
tree2044007fdba0fded47284a2ff7af9955c6cc178c
parente98eb0c113aa08e12d3a5b9b64a7cec182bed2ab (diff)
Fix script path for warnings
-rw-r--r--editor/script_editor_debugger.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index 2d4af6c63d..eb72d0aa6e 100644
--- a/editor/script_editor_debugger.cpp
+++ b/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]);
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 + "()";