#queue_free crashes after reparenting child nodes from an orphan node

4 messages · Page 1 of 1 (latest)

indigo star
#

what error does it show when you try to run that code?

fathom sigil
#

did you mean to write for child in instance.get_children(): ?

indigo star
#

i would've expected some kind of "invalid call method on null instance" type of error. it's extremely rare in my experience for the game or editor to actually crash instead of just pausing execution and throwing an error.

stable flume
#

Parent node is busy setting up children, add_child() failed. Consider using add_child.call_deferred(child) instead.