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

Can't preload a scene in autoload if that scene uses the autoload #68211

Closed
KoBeWi opened this issue Nov 3, 2022 · 3 comments · Fixed by #67714
Closed

Can't preload a scene in autoload if that scene uses the autoload #68211

KoBeWi opened this issue Nov 3, 2022 · 3 comments · Fixed by #67714

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Nov 3, 2022

Godot version

4.0 beta4

System information

Windows 10 x64

Issue description

When you have an Autoload and do preload("scene.tscn"), it will fail at runtime if that scene refers to Autoload in a script. This wasn't happening in beta3.

Steps to reproduce

Just run MRP

Minimal reproduction project

PreloadBug.zip

@KoBeWi KoBeWi added this to the 4.0 milestone Nov 3, 2022
@KoBeWi KoBeWi moved this from To Assess to Todo in 4.x Priority Issues Nov 3, 2022
@KoBeWi KoBeWi moved this to To Assess in 4.x Priority Issues Nov 3, 2022
@adamscott
Copy link
Member

I confirm the issue.

I tried to revert #68040 (26f0afd), to see if it was the cause, and it is not.

@adamscott
Copy link
Member

I mentioned in #67714 that it fixes this PR, but ideally, we should find what caused this issue.

@KoBeWi
Copy link
Member Author

KoBeWi commented Nov 5, 2022

Bisect says #67849 :<

tbh that fix was fishy to me from the beginning. But the issue it fixed was more important, so we need a proper fix for both issues rather than simple revert.

Repository owner moved this from Todo to Done in 4.x Priority Issues Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants