diff options
| author | Rémi Verschelde | 2018-02-13 23:10:38 +0100 |
|---|---|---|
| committer | GitHub | 2018-02-13 23:10:38 +0100 |
| commit | ba106ae51c01c45ccca2c599357d4304482b78fb (patch) | |
| tree | 88a3556e6dfc154726687594609d3431b5191b7d /editor/plugins/canvas_item_editor_plugin.cpp | |
| parent | 5d80235ead418b4f0d1d472b94b394ebaa3b347e (diff) | |
| parent | da69a0625333304e81e5d706d13e15ccbd414a52 (diff) | |
| download | godot-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/canvas_item_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 90969752d..4a05d401c 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -4002,6 +4002,11 @@ void CanvasItemEditor::add_control_to_menu_panel(Control *p_control) { hb->add_child(p_control); } +void CanvasItemEditor::remove_control_from_menu_panel(Control *p_control) { + + hb->remove_child(p_control); +} + HSplitContainer *CanvasItemEditor::get_palette_split() { return palette_split; |
