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()
|
else: functions = y_datas.size()
|
||||||
|
|
||||||
func clear_points():
|
func clear_points():
|
||||||
if $Points.get_children():
|
|
||||||
for function in Points.get_children():
|
for function in Points.get_children():
|
||||||
function.queue_free()
|
function.free()
|
||||||
for legend in $Legend.get_children():
|
for legend in Legend.get_children():
|
||||||
legend.queue_free()
|
legend.free()
|
||||||
|
|
||||||
func redraw():
|
func redraw():
|
||||||
build_chart()
|
build_chart()
|
||||||
|
Loading…
Reference in New Issue
Block a user