another day, another add_child made deferred
This commit is contained in:
parent
e40e3de653
commit
e2452ed14c
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ func _exit_tree():
|
|||
remove_child(particles)
|
||||
particles.global_position = global_position
|
||||
particles.emitting = false
|
||||
get_parent().add_child(particles)
|
||||
get_parent().call_deferred("add_child", particles)
|
||||
get_tree().create_timer(particles.lifetime, false).connect("timeout", particles, "queue_free")
|
||||
|
||||
#Wall Collision
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue