-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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 resource loader not resolving shallow loaded scripts through dependencies (reverted) #96499
Conversation
c97fdea
to
fd5fc9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me. I tested it, this PR fixes the linked issue.
@beev1s Note that GitHub will not count this as your contribution. See GitHub Docs for details.
Thanks, and congratulations on your first contribution! 🎉 |
This reverts commit fd5fc9f. This caused significant regressions which are worse than the bug that godotengine#96499 aimed to address. - Reverts godotengine#96499. - Reopens godotengine#95909. - Supersedes godotengine#102063. - Fixes godotengine#99006. - Fixes godotengine#101615.
Reverting with #102429 as this introduced complex regressions which are worse than the bug this was addressing. |
This reverts commit fd5fc9f. This caused significant regressions which are worse than the bug that godotengine#96499 aimed to address. - Reverts godotengine#96499. - Reopens godotengine#95909. - Supersedes godotengine#102063. - Fixes godotengine#99006. - Fixes godotengine#101615.
This reverts commit fd5fc9f. This caused significant regressions which are worse than the bug that godotengine#96499 aimed to address. - Reverts godotengine#96499. - Reopens godotengine#95909. - Supersedes godotengine#102063. - Fixes godotengine#99006. - Fixes godotengine#101615.
This reverts commit fd5fc9f. This caused significant regressions which are worse than the bug that godotengine#96499 aimed to address. - Reverts godotengine#96499. - Reopens godotengine#95909. - Supersedes godotengine#102063. - Fixes godotengine#99006. - Fixes godotengine#101615.
When a script first gets shallow loaded through a dependency and and then requested by the resource loader, that script is already registered in
ResourceCache
and will therefore not be properly reloaded, which is necessary in order to resolve any Script inheritance. This can lead to errors when assigning objects with that script to a reference of its parent.GDScript
now overwritesset_path_cache
which does not register it in theRessourceCache
.set_path_cache
replaces a call toset_path
inget_shallow_script
.get_full_script
now callsset_path
to register the script.