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 the initialization order for the iOS driver #90538

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

migueldeicaza
Copy link
Contributor

The problem is that we were initializating the main loop (SceneTree) when we were supposed to just set it. Which would cascade into a series of issues, including having the EditorNode being flagged as "inside_tree" and having a tree, before it was supposed to.

This meant that some code would assume it was fully initialized, when
it was not. And this manifested as the project not being scanned for
resources, which meant that during the importing, the resources would
not match using the uid path, and produce lots of errors.

This is a merged version of #89684

platform/ios/os_ios.mm Outdated Show resolved Hide resolved
@fire
Copy link
Member

fire commented Apr 12, 2024

Hi are you able to revise the pr?

@akien-mga
Copy link
Member

akien-mga commented Apr 12, 2024

Changes look good. Could you squash the commits? :)

Edit: Done.

The problem is that we were initializating the main loop (SceneTree)
when we were supposed to just set it.  Which would cascade into a
series of issues, including having the EditorNode being flagged as
"inside_tree" and having a tree, before it was supposed to.

This meant that some code would assume it was fully initialized, when
it was not.   And this manifested as the project not being scanned for
resources, which meant that during the importing, the resources would
not match using the uid path, and produce lots of errors.

One line fix
@akien-mga akien-mga merged commit 6d5981a into godotengine:master Apr 13, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

4 participants