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

Fix crash by ensuring selected node is a descendant of the edited scene #95420

Merged

Conversation

TokisanGames
Copy link
Contributor

@TokisanGames TokisanGames commented Aug 12, 2024

Fixes #95356,
Caused by regression #92188
Bugsquad edit: Fixes #94844

Previously this section of code allowed selecting nodes not descended from the edited scene, ascending beyond Godot's Window, resulting in a crash calling a function on a null.

This PR fixes that by requiring the selected node be a descendent of the edited scene (also a prereq of ownership), and fixes or reduces other aspects.

@TokisanGames TokisanGames force-pushed the fix-crash-selecting-notdescendant branch from 94f5a2c to 56d902e Compare August 13, 2024 05:03
@TokisanGames TokisanGames requested review from a team as code owners August 13, 2024 05:03
@TokisanGames TokisanGames force-pushed the fix-crash-selecting-notdescendant branch from 56d902e to b1a45d9 Compare August 13, 2024 05:09
@TokisanGames
Copy link
Contributor Author

Committed and squashed the suggested changes. Ready to go.

@akien-mga akien-mga merged commit 45342d0 into godotengine:master Aug 16, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
Ryan-000 pushed a commit to Ryan-000/godot that referenced this pull request Nov 11, 2024
…cting-notdescendant

Fix crash by ensuring selected node is a descendant of the edited scene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants