From da69a0625333304e81e5d706d13e15ccbd414a52 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 13 Feb 2018 19:21:19 -0200 Subject: Add a function to remove controls from containers Closes #5968 --- editor/plugins/spatial_editor_plugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editor/plugins/spatial_editor_plugin.cpp') diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 27147cbb6..63762651d 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -4778,6 +4778,11 @@ void SpatialEditor::add_control_to_menu_panel(Control *p_control) { hbc_menu->add_child(p_control); } +void SpatialEditor::remove_control_from_menu_panel(Control *p_control) { + + hbc_menu->remove_child(p_control); +} + void SpatialEditor::set_can_preview(Camera *p_preview) { for (int i = 0; i < 4; i++) { -- cgit v1.2.3-70-g09d2