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
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
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++) {