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

[3.x] Don't ignore the type mismatch in setter function #54117

Merged

Conversation

Listwon
Copy link
Contributor

@Listwon Listwon commented Oct 22, 2021

Fixes #48765

If member had setter, but the call returned error different than Variant::CallError::CALL_OK, GDScriptInstance::set would return true anyway. So in case of the type mismatch it silently moved forward without any errors. The case without the setter was handled properly and returned false when non-CALL_OK error occured.

@Listwon Listwon requested a review from a team as a code owner October 22, 2021 11:03
@Listwon Listwon changed the title Don't ignore the type mismatch in setter function [3.x] Don't ignore the type mismatch in setter function Oct 22, 2021
@Calinou Calinou added this to the 3.4 milestone Oct 22, 2021
@akien-mga akien-mga modified the milestones: 3.4, 3.5 Nov 8, 2021
@akien-mga akien-mga merged commit 2f10793 into godotengine:3.x Nov 8, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.1.

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.

3 participants