Hi,
As the docs. When calling queue_free on the parent, all children get deleted also
But he removed said child from the scene tree. Making it a child no more. You’d have to either add it back as a child prior to tree exit, or manually call queue_free().
SIsilicon | 2018-12-06 02:18
Yes. I’m simply calling object.queue_free now as you suggested
Seems to be working fine
Tatuzudo | 2018-12-06 13:30
You are right, if it’s no more a child it wont get deleted. My bad.
remove_child does indeed remove the child from its parent, but it does not delete the child. You seem to be calling add_child while the other node is getting removed/freed. Yeah I’d say that the node is really gone. But I’d use queue_free with that node instead.