From 7dd5e45090aa2133d535c21e9e587855155bb38e Mon Sep 17 00:00:00 2001 From: CodeDarigan Date: Thu, 7 Mar 2019 11:38:42 +0000 Subject: [PATCH] Correct use of "queue_free" method It was inversed. --- tutorials/plugins/editor/making_main_screen_plugins.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/plugins/editor/making_main_screen_plugins.rst b/tutorials/plugins/editor/making_main_screen_plugins.rst index acd1a4abd..88cb8f501 100644 --- a/tutorials/plugins/editor/making_main_screen_plugins.rst +++ b/tutorials/plugins/editor/making_main_screen_plugins.rst @@ -207,8 +207,8 @@ Here is the full ``main.gd``: make_visible(false) func _exit_tree(): - queue_free(main_panel_instance) - queue_free(side_panel_instance) + main_panel_instance.queue_free() + side_panel_instance.queue_free() func _ready(): main_panel_instance.connect("main_button_pressed", side_panel_instance, "_on_main_button_pressed")