changed to free since queue_free is not fast enough. Godot Doc: "Queues a node for deletion at the end of the current frame." (#43)

This commit is contained in:
chrisskeddy 2021-03-13 05:05:46 -05:00 committed by GitHub
parent 964ddacc1f
commit 535edd5da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,11 +468,10 @@ func count_functions():
else: functions = y_datas.size()
func clear_points():
if $Points.get_children():
for function in Points.get_children():
function.queue_free()
for legend in $Legend.get_children():
legend.queue_free()
for function in Points.get_children():
function.free()
for legend in Legend.get_children():
legend.free()
func redraw():
build_chart()