Fix orphan nodes counter
This commit is contained in:
parent
82cf251ece
commit
c58640c1e0
1 changed files with 1 additions and 1 deletions
|
@ -169,4 +169,4 @@ func check_children() -> void:
|
||||||
if get_tree().root.get_child_count() != 1: lwarn("There are still '" + str(get_tree().root.get_child_count()-1) + "' children active in the scene tree. Please make sure to call 'remove_child' on them in your tests.")
|
if get_tree().root.get_child_count() != 1: lwarn("There are still '" + str(get_tree().root.get_child_count()-1) + "' children active in the scene tree. Please make sure to call 'remove_child' on them in your tests.")
|
||||||
|
|
||||||
func check_orphan_nodes() -> void:
|
func check_orphan_nodes() -> void:
|
||||||
if Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT) != 4: lwarn("There are still '" + str(Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT)) + "' orphan nodes loaded. Please make sure to call 'queue_free' or 'free' on them in your tests.")
|
if Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT) != 4: lwarn("There are still '" + str(Performance.get_monitor(Performance.OBJECT_ORPHAN_NODE_COUNT-4)) + "' orphan nodes loaded. Please make sure to call 'queue_free' or 'free' on them in your tests.")
|
||||||
|
|
Loading…
Reference in a new issue