-
-
Notifications
You must be signed in to change notification settings - Fork 21k
New issue
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
GraphEdit's AddValidConnectionType args are reversed #34420
Comments
in gd script it allows the connection if you start the connection from the "to" slot type regardless of left or right side |
CC @godotengine/gui-nodes |
Yep, seems like they are really reversed. Not sure why there weren't other reports about it, but it doesn't affect visual editors, because connections are two-way. |
Godot version:
269145a Mono
OS/device including version:
ArcoLinux
Issue description:
AddValidConnectionType takes two arguments: fromType, and then toType. However, in order to get a right-side slot (from) to connect with a left-side slot(to), you actually have to supply the arguments in the reverse order: toType first, then fromType, despite the argument names. These should probably be swapped around, or renamed.
I'm not sure if GDScript also has this same issue or if it's another C# inconsistency.
The text was updated successfully, but these errors were encountered: