-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot change scene with InkPlayer instantiated #83
Comments
Adding details to this
It looks like what is happening is that See here: get_tree returns null when it's called on a node that isn't inside the tree. inkgd/addons/inkgd/ink_player.gd Lines 307 to 308 in fea9098
|
Describe the bug
It's not possible to change a scene via
get_tree().change_scene_to_file()
with InkPlayer instance in the active scene.To Reproduce
Expected behavior
Normal scene change, just like with any scene that doesn't have InkPlayer
Ink files
It happens with any .json ink file
Environment:
Additional context
The exact issue is caused by line 838 in ink_player.gd with error
Invalid get index 'root' (on base: 'null instance').
Also, I noticed that if I just comment that line out, there's no errors and the scene changes, though I don't know exactly if something else breaks in the back that I don't know about.
The text was updated successfully, but these errors were encountered: