1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Add a function to remove controls from containers

Closes #5968

(cherry picked from commit da69a06253)
This commit is contained in:
George Marques
2018-02-13 19:21:19 -02:00
committed by Hein-Pieter van Braam
parent c94d8e6577
commit a39930c5b9
7 changed files with 72 additions and 0 deletions

View File

@@ -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++) {