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

Update signal connections in CanvasLayer::set_custom_viewport #93167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaronp64
Copy link
Contributor

CanvasLayer connects/disconnects the "child_order_changed" signal from its parent to its viewport when entering/exiting the tree. This signal wasn't being updated when changing the viewport in set_custom_viewport, causing errors when trying to disconnect a different viewport. This change updates the signal connections when changing the viewport.

Fixes the disconnect error in #90141

Note: the linked issue also mentions some Vulkan errors, which only appear in the larger project but not the MRP. This seems separate from the signal disconnect error. It looks like the Vulkan code has changed a lot since then (I don't see those error messages in the code, or even the .cpp file that had them), so that part might already be fixed, maybe related to #71929.

CanvasLayer connects/disconnects the "child_order_changed" signal from its parent to its viewport when entering/exiting the tree.  This signal wasn't being updated when changing the viewport in set_custom_viewport, causing errors when trying to disconnect a different viewport.  This change updates the signal connections when changing the viewport.

Fixes the disconnect error in godotengine#90141
@aaronp64 aaronp64 requested a review from a team as a code owner June 14, 2024 15:39
@AThousandShips AThousandShips added this to the 4.3 milestone Jun 14, 2024
@akien-mga akien-mga modified the milestones: 4.3, 4.4 Jul 31, 2024
@akien-mga akien-mga added the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release topic:gui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants