mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 03:24:32 -05:00
Improve the shader error console output
This makes the line gutter look more like an actual line gutter, which makes it less confusing.
This commit is contained in:
parent
ea48b403a9
commit
5fae0c454a
1 changed files with 2 additions and 2 deletions
|
@ -647,13 +647,13 @@ String String::camelcase_to_underscore(bool lowercase) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
String String::get_with_code_lines() const {
|
String String::get_with_code_lines() const {
|
||||||
Vector<String> lines = split("\n");
|
const Vector<String> lines = split("\n");
|
||||||
String ret;
|
String ret;
|
||||||
for (int i = 0; i < lines.size(); i++) {
|
for (int i = 0; i < lines.size(); i++) {
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
ret += "\n";
|
ret += "\n";
|
||||||
}
|
}
|
||||||
ret += itos(i + 1) + " " + lines[i];
|
ret += vformat("%4d | %s", i + 1, lines[i]);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue