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 PackedScenes created with PackedScene.pack() have their exported nodes become null #75429

Conversation

MewPurPur
Copy link
Contributor

@MewPurPur MewPurPur commented Mar 28, 2023

Fixes #73315 as per KoBeWi's comment. I have no idea what I'm doing here, so I hope this is the exact proper solution, I'll not be able to make major modifications if request arises.

Tested it on my game and I didn't encounter any regressions. But tbh I don't exactly know what kinds of regressions I should be looking for...

@kleonc kleonc added this to the 4.1 milestone Mar 28, 2023
@kleonc kleonc requested a review from KoBeWi March 28, 2023 18:27
@MewPurPur
Copy link
Contributor Author

MewPurPur commented Mar 30, 2023

Yeah KoBeWi recently poked at this code, but looking at the blame, Juan wrote the custom condition and KoBeWi seems confused about it. Maybe Juan should be the one to take a look?

@MewPurPur MewPurPur force-pushed the Literally-cant-have-a-functioning-level-editor-because-of-this-please-helppp branch from a605d50 to 40407b4 Compare April 13, 2023 14:07
@MewPurPur MewPurPur force-pushed the Literally-cant-have-a-functioning-level-editor-because-of-this-please-helppp branch from 40407b4 to 6c6c130 Compare April 13, 2023 14:16
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

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

Doesn't seem to have any adverse effects (or at least nothing obvious xd).

@akien-mga akien-mga merged commit ed62d96 into godotengine:master Apr 25, 2023
@akien-mga
Copy link
Member

Thanks!

@MewPurPur MewPurPur deleted the Literally-cant-have-a-functioning-level-editor-because-of-this-please-helppp branch April 25, 2023 10:37
@YuriSizov
Copy link
Contributor

Can't make a clean cherry-pick of this PR because it changes code affected by #73256. So we'll have to postpone picking it until the other one is picked.

@akien-mga
Copy link
Member

Yeah I think if we want #73256 in 4.0.x eventually, it would likely require a dedicated PR with all the relevant cherry-picks. There have been a lot of intertwined changes to PackedScene like this one.

@YuriSizov
Copy link
Contributor

Regarding the cherry-pick, see my comment here: #76378 (comment). We recommend updating to 4.1 if this issue greatly affects you.

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.

PackedScenes created with PackedScene.pack() have their exported nodes become null
5 participants