From b01ef197a6d3515991ccbdfdfcad8b9a8a7233f0 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Tue, 21 May 2019 13:14:45 -0300 Subject: [PATCH] Fix bottom panel visibility behaviour in the theme editor Fixes #29034, fixes #29056 (cherry picked from commit b5c8205312c04205db5fe7ebf87ddbaa9dbfc950) --- editor/plugins/theme_editor_plugin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp index 7eee4b2f47c..5796dcc6c7c 100644 --- a/editor/plugins/theme_editor_plugin.cpp +++ b/editor/plugins/theme_editor_plugin.cpp @@ -878,11 +878,9 @@ ThemeEditor::ThemeEditor() { void ThemeEditorPlugin::edit(Object *p_node) { if (Object::cast_to(p_node)) { - theme_editor->show(); theme_editor->edit(Object::cast_to(p_node)); } else { theme_editor->edit(Ref()); - theme_editor->hide(); } } @@ -897,11 +895,11 @@ void ThemeEditorPlugin::make_visible(bool p_visible) { theme_editor->set_process(true); button->show(); editor->make_bottom_panel_item_visible(theme_editor); - } else { theme_editor->set_process(false); if (theme_editor->is_visible_in_tree()) editor->hide_bottom_panel(); + button->hide(); } }