Loading a parent scene then a child scene with ResourceLoader.load_interactive(...)
causes "'res://Parent.tscn' is already being loaded. Cyclic reference?"
#50006
Labels
Milestone
Godot version
3.3.2.stable
System information
Windows 10
Issue description
I set up three scenes:
Parent.tscn
Child.tscn
inherits fromParent.tscn
Spatial.tscn
has a script that loads Parent, then loads Child:Obviously this isn't how you'd usually use this API, but it reproduces the error just fine. 😄 This was originally spotted in the wild with a typical use of
.poll()
.When I run with
Spatial.tscn
as the main scene, I get this output:It seems to me that when you use
ResourceLoader.load_interactive
, it doesn't end up callingResourceLoader::_remove_from_loading_map
, so it thinks thatres://Parent.tscn
is always being loaded from that point on.It's the first
ResourceLoader.load_interactive
that seems to be the issue here--usingload
for the child still causes errors:Steps to reproduce
Run the main scene in the repro project or follow the steps in the description.
Minimal reproduction project
GodotLoadInteractiveInherit.zip
The text was updated successfully, but these errors were encountered: