0 votes

I renamed a scene, and used gettree().changescene from the main menu (first scene in project) to that renamed scene, which worked fine.

But then I tried out another scene, which used gettree().changescene to the renamed scene, this scene used to change scene to the renamed scene before I renamed it.

When I write gettree().changescene from the "another scene" to the renamed scene, Godot just crashes and shows "Object was deleted while awaiting a callback" a lot of times. I had to rename the scene back to its old name in order for it to stop crashing, but It's really annoying since I just want to rename it.

Anyone have any idea what may cause this?

in Engine by (17 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.