Skip to content

Conversation

@HolonProduction
Copy link
Member

@HolonProduction HolonProduction commented Jan 6, 2026

Fixes somewhat #105485

When an inner class gets to the resource saver for packed scenes it will look like a builtin resource and the resource loader will assign it a builtin id. Previously this would move the main scripts entry in the gdscript cache to this builtin path which makes the cache inconsistent and a second script could be created for the original path, leading to the duplicated script.

This PR prevents the inconsistent cache. It does not intervene when a resource safer tries to safe the inner class. So this might still cause less visible issues. But due to the strange status of builtin classes I'm not really sure how this should be handled since inner classes are just not serializable at all right now. So let's go with the ostrich algorithm for now!

@HolonProduction HolonProduction requested a review from a team as a code owner January 6, 2026 17:59
@AThousandShips AThousandShips added this to the 4.6 milestone Jan 7, 2026
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.

2 participants