Skip to content
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

GDScript DocGen: Fix regression with return metatypes #83049

Conversation

dalexeev
Copy link
Member

@dalexeev dalexeev commented Oct 9, 2023

function->return_type->get_datatype() and function->get_datatype() have different values:

p_function->set_datatype(type_from_metatype(resolve_datatype(p_function->return_type)));

Since DocGen previously did not take metatypes into account, this bug did not appear.

@akien-mga akien-mga merged commit 7f5be55 into godotengine:master Oct 10, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@dalexeev dalexeev deleted the gds-docgen-fix-return-metatype-regression branch October 10, 2023 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants