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

Remove CanvasItem::_invalidate_global_transform #80320

Merged

Conversation

Sauermann
Copy link
Contributor

@Sauermann Sauermann commented Aug 6, 2023

The only use of that function can be replaced by _notify_transform, which makes the propagate_call unnecessary.
As far as I can tell, the data.blocked-checks of propagate_call are not needed in this case, because _invalidate_global_transform causes no user-noticeable changes.

Updated 2023-08-30: With #80105 merged, this PR can now be considered ready.

@Sauermann Sauermann added this to the 4.2 milestone Aug 6, 2023
@Sauermann Sauermann requested a review from a team as a code owner August 6, 2023 07:29
@YuriSizov YuriSizov requested a review from a team August 9, 2023 14:29
@Sauermann Sauermann marked this pull request as draft August 11, 2023 05:18
The only use of that function can be replaced by `_notify_transform`,
which makes the `propagate_call` unnecessary.
As far as I can tell, the `data.blocked`-checks of `propagate_call`
are not needed in this case, because `_invalidate_global_transform`
causes no user-noticeable changes.
@Sauermann Sauermann force-pushed the fix-remove-invalidation-function branch from 5e88139 to 7f317ef Compare August 29, 2023 22:31
@Sauermann Sauermann marked this pull request as ready for review August 29, 2023 22:32
@akien-mga akien-mga merged commit fc0b3f7 into godotengine:master Aug 30, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@Sauermann Sauermann deleted the fix-remove-invalidation-function branch August 30, 2023 17:26
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