We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4.0.stable.official [92bee43]
Windows 10
This Godot 3 line
assert(r.hash() == {"a":1, "b":2}.hash())
was converted to this:
assert(r.hash() == {"a":1) #,"b":2}.hash())
For some reason ) # is added after 1.
) #
1
Just converting Godot 3 project containing the line to Godot 4.
N/A
The text was updated successfully, but these errors were encountered:
it would seem this part of the converter's code is responsible for this:
godot/editor/project_converter_3_to_4.cpp
Line 2022 in 3695fe5
the whole block looks like this:
// assert(speed < 20, str(randi()%10)) -> assert(speed < 20) #,str(randi()%10)) GDScript - GDScript bug constant message if (line.contains("assert(")) { int start = line.find("assert("); int end = get_end_parenthesis(line.substr(start)) + 1; if (end > -1) { Vector<String> parts = parse_arguments(line.substr(start, end)); if (parts.size() == 2) { line = line.substr(0, start) + "assert(" + parts[0] + ") " + line.substr(end + start) + "#," + parts[1] + ")"; } } }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Godot version
v4.0.stable.official [92bee43]
System information
Windows 10
Issue description
This Godot 3 line
was converted to this:
For some reason
) #
is added after1
.Steps to reproduce
Just converting Godot 3 project containing the line to Godot 4.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: