aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorGeorge Marques2018-02-13 19:21:19 -0200
committerHein-Pieter van Braam2018-02-19 22:18:22 +0100
commita39930c5b909fa0794af65a9127ebfa668a31bb9 (patch)
treefad781cb8236148b09c8a72e026106294e8578e2 /editor/plugins/spatial_editor_plugin.cpp
parentc94d8e65775a7a33531840fcd0af641a3be2dcd9 (diff)
downloadgodot-a39930c5b909fa0794af65a9127ebfa668a31bb9.tar.gz
godot-a39930c5b909fa0794af65a9127ebfa668a31bb9.tar.zst
godot-a39930c5b909fa0794af65a9127ebfa668a31bb9.zip
Add a function to remove controls from containers
Closes #5968 (cherry picked from commit da69a0625333304e81e5d706d13e15ccbd414a52)
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp5
1 files changed, 5 insertions, 0 deletions
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++) {