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 duplicating local-to-scene resources #43657

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

RandomShaper
Copy link
Member

@RandomShaper RandomShaper commented Nov 18, 2020

With some luck, this is the last case of crashes caused by Variant being more clever about References.

Striving for that to be true, I've checked all the cases in 3.2 and 4.0 where an arbitrary class is instantiated via ClassDB to ensure the obtained Resource, if that's the case, is early wrapped by a Ref if it's meant be assigned to a Variant. I haven't found any other case, but I may have overlooked some, of course.

Fixes #43652.

@RandomShaper RandomShaper added bug topic:core topic:editor crash cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Nov 18, 2020
@RandomShaper RandomShaper added this to the 4.0 milestone Nov 18, 2020
@akien-mga akien-mga merged commit eebd3e8 into godotengine:master Nov 19, 2020
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.2.4.

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.

Crash when serialising PackedScene with a custom resource
2 participants