summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-06 22:49:58 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-06 22:49:58 +0100
commit4fcb8bc47242645a67971f495372a67595f3f772 (patch)
tree3b85e866e13659100012661d50c560b39ff45202 /editor
parente0619a658e4a281be9e634dccfe158a818c1773b (diff)
parent1f9dbbe07bc1fa3fbfdd0e97c5d54c6422ae7a15 (diff)
Merge pull request #72805 from TokageItLab/fix-ap
Fix AnimationTrackEditor doesn't open when selecting AnimationPlayer node while another Editor is open
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index f6fe6c9f76..1e7d0cc1cb 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -5624,8 +5624,9 @@ void EditorNode::_bottom_panel_switch(bool p_enable, int p_idx) {
return;
}
- bottom_panel_updating = true;
if (p_enable) {
+ bottom_panel_updating = true;
+
for (int i = 0; i < bottom_panel_items.size(); i++) {
bottom_panel_items[i].button->set_pressed(i == p_idx);
bottom_panel_items[i].control->set_visible(i == p_idx);
@@ -5642,7 +5643,6 @@ void EditorNode::_bottom_panel_switch(bool p_enable, int p_idx) {
top_split->hide();
}
bottom_panel_raise->show();
-
} else {
bottom_panel->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("BottomPanel"), SNAME("EditorStyles")));
bottom_panel_items[p_idx].button->set_pressed(false);