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

Unbind Variant methods that change immutable types. #70995

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

reduz
Copy link
Member

@reduz reduz commented Jan 6, 2023

Fixes #62706.
Code is commented instead of removed to clarify why they should not be re-added.

@reduz reduz requested a review from a team as a code owner January 6, 2023 14:16
@akien-mga
Copy link
Member

I think you can add a comment like "Do not bind rotation, scale, skew, ..." and remove the dead code.

But shouldn't we outright remove those methods in C++ too? That would be much cleaner.

@akien-mga akien-mga added this to the 4.0 milestone Jan 6, 2023
@reduz reduz force-pushed the do-not-bind-variant-immutable branch from 2a3376f to 89e74f1 Compare January 6, 2023 16:14
@reduz reduz requested a review from a team as a code owner January 6, 2023 16:14
@reduz
Copy link
Member Author

reduz commented Jan 6, 2023

@akien-mga Those are useful in C++ for performance, but in script since types are immutable they can't really be exposed.

Fixes godotengine#62706.
Code is commented instead of removed to clarify why they should not be re-added.
@reduz reduz force-pushed the do-not-bind-variant-immutable branch from 89e74f1 to 576ae69 Compare January 6, 2023 16:17
@reduz
Copy link
Member Author

reduz commented Jan 6, 2023

@akien-mga done

@akien-mga akien-mga merged commit a12b326 into godotengine:master Jan 6, 2023
@akien-mga
Copy link
Member

Thanks!

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.

[GDScript 2.0] Remove confusing functions from Transform2D
2 participants