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 when selecting ownerless 3D node. #96199

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

SaracenOne
Copy link
Member

Closes #96116

Apologies for this oversight and thanks to @CreatedBySeb for providing a fix.

@SaracenOne SaracenOne added bug topic:editor crash topic:3d cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Aug 28, 2024
@SaracenOne SaracenOne added this to the 4.4 milestone Aug 28, 2024
@SaracenOne SaracenOne requested a review from a team as a code owner August 28, 2024 03:38
Copy link
Member

@fire fire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does owner == null means scene root?

@SaracenOne
Copy link
Member Author

It can, but it can also refer to nodes that instanced which don't actually appear in the scene tree, like in the example, nodes instanced by tools which don't appear in the inspector and aren't serialized. The specific issue here I believe is that the code which is meant to select the parents of ownerless nodes didn't account for ownerless nodes which are direct descendents of the edited scene root.

@akien-mga akien-mga merged commit 35be8ac into godotengine:master Aug 28, 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
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.

Clicking scene instantiated via @tool script crashes editor
3 participants