Skip to content

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

@Lippanon

Description

@Lippanon

Godot version

v4.0.beta.custom_build [afe1c89]

System information

Windows 10

Issue description

Making a separate a issue from my comment on #68865 to make it easier to fix.

If a scene or elements from a scene are already loaded, one will be unable to instantiate it again.

image
image
image

This was not a problem before the merge of #67714 .

Steps to reproduce

To make it easier to understand how to trigger, here's the scene tree:
image
The script is in the "2nd_child" scene.

Minimal reproduction project

MRP:
preload problem 4.x.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions