aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2018-02-13 23:10:38 +0100
committerGitHub2018-02-13 23:10:38 +0100
commitba106ae51c01c45ccca2c599357d4304482b78fb (patch)
tree88a3556e6dfc154726687594609d3431b5191b7d /editor/plugins/spatial_editor_plugin.cpp
parent5d80235ead418b4f0d1d472b94b394ebaa3b347e (diff)
parentda69a0625333304e81e5d706d13e15ccbd414a52 (diff)
downloadgodot-ba106ae51c01c45ccca2c599357d4304482b78fb.tar.gz
godot-ba106ae51c01c45ccca2c599357d4304482b78fb.tar.zst
godot-ba106ae51c01c45ccca2c599357d4304482b78fb.zip
Merge pull request #16667 from vnen/remove-container-control
Add a function to remove controls from containers
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++) {