mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2025-02-20 17:04:20 +01:00
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:
parent
964ddacc1f
commit
535edd5da9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user