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] Fix CanvasLayer visibility toggle can only run once per frame #69558

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

timothyqiu
Copy link
Member

Fixes #69556

The GROUP_CALL_UNIQUE flag was copied from CanvasItem code.

get_tree()->call_group_flags(SceneTree::GROUP_CALL_UNIQUE, canvas_group, "_toplevel_raise_self");

I thought calling the same method with different arguments are considered unique calls, but it turns out I'm wrong :(

@timothyqiu timothyqiu added bug topic:2d cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels Dec 4, 2022
@timothyqiu timothyqiu added this to the 3.6 milestone Dec 4, 2022
@timothyqiu timothyqiu requested a review from a team as a code owner December 4, 2022 07:04
@timothyqiu timothyqiu changed the title Fix CanvasLayer visibility toggle can only run once per frame [3.x] Fix CanvasLayer visibility toggle can only run once per frame Dec 4, 2022
@akien-mga
Copy link
Member

Why does it work in CanvasItem despite the flag?

@timothyqiu
Copy link
Member Author

In CanvasItem it's calling a different method without arguments (although the group name is the same).

@akien-mga akien-mga merged commit f128170 into godotengine:3.x Dec 11, 2022
@akien-mga
Copy link
Member

Thanks!

@timothyqiu
Copy link
Member Author

Cherry-picked for 3.5.2

@timothyqiu timothyqiu removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Dec 12, 2022
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