summaryrefslogtreecommitdiffstats
path: root/editor/gui/editor_bottom_panel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/gui/editor_bottom_panel.cpp')
-rw-r--r--editor/gui/editor_bottom_panel.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/gui/editor_bottom_panel.cpp b/editor/gui/editor_bottom_panel.cpp
index f2c4a13e05..3e74a3c94e 100644
--- a/editor/gui/editor_bottom_panel.cpp
+++ b/editor/gui/editor_bottom_panel.cpp
@@ -178,7 +178,11 @@ Button *EditorBottomPanel::add_item(String p_text, Control *p_item, const Ref<Sh
bpi.button = tb;
bpi.control = p_item;
bpi.name = p_text;
- items.push_back(bpi);
+ if (p_at_front) {
+ items.insert(0, bpi);
+ } else {
+ items.push_back(bpi);
+ }
return tb;
}