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

GDScript: Fix GDScriptCache::get_full_script() uses non-remapped path #97769

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

dalexeev
Copy link
Member

@dalexeev dalexeev commented Oct 3, 2024

This PR fixes an inconsistency between GDScriptCache::get_shallow_script() and GDScriptCache::get_full_script(). Resource, FQCN, and GDScriptCache use canonical paths. Only GDScript::load_source_code(), GDScriptCache::get_source_code(), and GDScriptCache::get_binary_tokens() deal with actual paths.

Note: The existence of both GDScript::load_source_code() and GDScriptCache::get_source_code() may indicate a need for refactoring.

@dalexeev dalexeev added bug topic:gdscript regression topic:export cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Oct 3, 2024
@dalexeev dalexeev added this to the 4.4 milestone Oct 3, 2024
@dalexeev dalexeev requested a review from a team as a code owner October 3, 2024 14:16
@akien-mga akien-mga merged commit 32239d4 into godotengine:master Oct 4, 2024
19 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
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release regression topic:export topic:gdscript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[4.3] ResourceLoader.load not working for dedicated_server
2 participants