Skip to content

Fetch cached scene if it exists in GDScriptCache::get_packed_scene()#68972

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
adamscott:fix-godot#68971-cached-scene
Nov 22, 2022
Merged

Fetch cached scene if it exists in GDScriptCache::get_packed_scene()#68972
akien-mga merged 1 commit intogodotengine:masterfrom
adamscott:fix-godot#68971-cached-scene

Conversation

@adamscott
Copy link
Copy Markdown
Member

If the scene exists in ResourceCache, GDScriptCache now fetches it before instantiating a new scene that can clash with the cached one later.

The change is not compatible with 3.x

Fixes #68971 - GDScript 2.0: Can't instantiate scene if another resource is loaded from the same path

@adamscott adamscott requested a review from a team as a code owner November 21, 2022 21:00
@adamscott adamscott changed the title Fetch cached scene if it exists in GDScriptCache (fixes #68971) Fetch cached scene if it exists in GDScriptCache::get_packed_scene() Nov 21, 2022
@Calinou Calinou added this to the 4.0 milestone Nov 21, 2022
@akien-mga akien-mga merged commit 17b0c86 into godotengine:master Nov 22, 2022
@akien-mga
Copy link
Copy Markdown
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.

GDScript 2.0: Can't instantiate scene if another resource is loaded from the same path

3 participants