You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Please note that I am still on Godot 3.5 until my project is over. I do not expect a bug correction on this version, but rather a quick workaround if you know any.
When calling change_scene() between two inherited scenes, the scene replacement works as intended, but an error is shown in the debugger :
The error is on the instruction _root.add_child() :
Every time I call change_scene, the same error is repeated, but again the scene replacement works as intended.
To Reproduce
On Godot 3.5
Have two Node2D scenes.
Create an inherited scene from each scene (scene -> new inherited scene)
Attach a script to a child scene, then call change_scene from the scene to the other child scene
The scene replacement works as intended, but an error appears in the stacktrace.
Call change_scene multiple times to get multiple errors.
The error does not appear when calling change_scene between non-inherited scenes.
Expected behavior
The scene switch should happen with no error.
I would either like to solve the error, or to know if I can safely keep it.
Screenshots
The code to change scene (event fired from a Node2D collision)
The target inherited scene
The base scene
Desktop
Windows 10
Additional context
Godot 3.5
The text was updated successfully, but these errors were encountered:
Hello, thanks for the report and the fix (and sorry for the late reply). Does your fix work correctly or did you run into any further issues? We might just add that code directly into the 3.x branch in that case, if you'd like to do it PRs are also welcome here!
I just made a blog post here explaining the situation of this plugin #35
Describe the bug
Please note that I am still on Godot 3.5 until my project is over. I do not expect a bug correction on this version, but rather a quick workaround if you know any.
When calling change_scene() between two inherited scenes, the scene replacement works as intended, but an error is shown in the debugger :
The error is on the instruction _root.add_child() :
Every time I call change_scene, the same error is repeated, but again the scene replacement works as intended.
To Reproduce
On Godot 3.5
Expected behavior
The scene switch should happen with no error.
I would either like to solve the error, or to know if I can safely keep it.
Screenshots
The code to change scene (event fired from a Node2D collision)
The target inherited scene
The base scene
Desktop
Additional context
Godot 3.5
The text was updated successfully, but these errors were encountered: