From 535edd5da9711124b801b72b93797d903091fa9a Mon Sep 17 00:00:00 2001 From: chrisskeddy Date: Sat, 13 Mar 2021 05:05:46 -0500 Subject: [PATCH] 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) --- addons/easy_charts/Utilities/Scripts/chart.gd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/addons/easy_charts/Utilities/Scripts/chart.gd b/addons/easy_charts/Utilities/Scripts/chart.gd index 18ad192..99aa4a1 100644 --- a/addons/easy_charts/Utilities/Scripts/chart.gd +++ b/addons/easy_charts/Utilities/Scripts/chart.gd @@ -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()