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 Editor crash when MeshLibrary gets replaced while used in an open Scene #67141

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Oct 9, 2022

Fixes #64393

Some functions are intended to be called inside the SceneTree so get_global_transform() and get_world() can work but this is not always the case when the scene is loaded in e.g. an Editor background tab. The MeshLibrary replacement is triggering a lot of them and while transform fails only polluted the error log the call to get_world() was a fatal error that crashed the Editor.

In Godot 4.x this is already guarded / handled slightly differently.

@smix8 smix8 requested a review from a team as a code owner October 9, 2022 15:26
@YeldhamDev YeldhamDev added this to the 3.x milestone Oct 9, 2022
@akien-mga akien-mga modified the milestones: 3.x, 3.6 Oct 14, 2022
@akien-mga akien-mga added the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Oct 14, 2022
@akien-mga akien-mga merged commit 567d5e2 into godotengine:3.x Oct 14, 2022
@akien-mga
Copy link
Member

Thanks!

@timothyqiu
Copy link
Member

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 5, 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.

5 participants