Godot: Game closes when reloading scene while using yields

Created on 15 May 2016  ·  3Comments  ·  Source: godotengine/godot

Ubuntu Gnome / Linux - Build from source (last commint).

I have this piece of code running:
screenshot from 2016-05-14 19-24-04

And if I try to reload the current scene (get_tree().reload_current_scene()) the game closes without dropping any errors.

I also try with get_tree().call_deferred("reload_current_scene"), no luck either.

sample project is in this comment: https://github.com/godotengine/godot/issues/4658#issuecomment-219407248

EDIT:
It does the same with the yield waiting for idle_frame.

archived bug core gdscript

Most helpful comment

Here is a little test: Test.zip

All 3 comments

It would be great if you could provide some minimal example project, it always saves time of core developers if only thing they need to do to reproduce is to download and run (btw it's good idea to use default issue template when you are creating new issue).

Here is a little test: Test.zip

This is the same as #5247. And since I already posted my thoughts in there, I'll close this one.

Was this page helpful?
0 / 5 - 0 ratings