1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Add a function to remove controls from containers

Closes #5968
This commit is contained in:
George Marques
2018-02-13 19:21:19 -02:00
parent 9f0cce840d
commit da69a06253
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++) {