aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/theme_editor_plugin.cpp
diff options
context:
space:
mode:
authorFranklin Sobrinho2016-03-15 15:15:50 -0300
committerRémi Verschelde2016-04-02 22:10:31 +0200
commit41326781d2abc5877436118b5e23a5bc759cce4c (patch)
tree730630139fc51d27f5ab0d2597a175def543c088 /tools/editor/plugins/theme_editor_plugin.cpp
parentcacf7d136f6204ab6af83c657a87112267e283db (diff)
downloadgodot-41326781d2abc5877436118b5e23a5bc759cce4c.tar.gz
godot-41326781d2abc5877436118b5e23a5bc759cce4c.tar.zst
godot-41326781d2abc5877436118b5e23a5bc759cce4c.zip
Fix editors panels, of the bottom panel, not resizing in some cases
(cherry picked from commit 4a0f835ece40db45f1705761cd492bd34e8c4630)
Diffstat (limited to 'tools/editor/plugins/theme_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/theme_editor_plugin.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/editor/plugins/theme_editor_plugin.cpp b/tools/editor/plugins/theme_editor_plugin.cpp
index ef7b3b17c..938b8344b 100644
--- a/tools/editor/plugins/theme_editor_plugin.cpp
+++ b/tools/editor/plugins/theme_editor_plugin.cpp
@@ -833,10 +833,12 @@ void ThemeEditorPlugin::make_visible(bool p_visible){
if (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())
- EditorNode::get_singleton()->hide_bottom_panel();
+ editor->hide_bottom_panel();
button->hide();
}
}
@@ -848,7 +850,7 @@ ThemeEditorPlugin::ThemeEditorPlugin(EditorNode *p_node) {
theme_editor->set_custom_minimum_size(Size2(0,500));
// p_node->get_viewport()->add_child(theme_editor);
- button=EditorNode::get_singleton()->add_bottom_panel_item("Theme",theme_editor);
+ button=editor->add_bottom_panel_item("Theme",theme_editor);
button->hide();