diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-04 10:22:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 10:22:47 +0100 |
commit | 6994602e4f6c3e5fbd03b0ba17eadb9d34cfcac4 (patch) | |
tree | 82e2581dc36858037fda8af6496c6b70d9737d51 /editor/plugins | |
parent | 4c3096350f4b2a64bf423748d42ee82db668a0fe (diff) | |
parent | 65881a9734e5babbe261afff17895c3ea4005341 (diff) |
Merge pull request #56429 from PucklaMotzer09/tile_set_editor_hide
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/tiles/tiles_editor_plugin.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/editor/plugins/tiles/tiles_editor_plugin.cpp b/editor/plugins/tiles/tiles_editor_plugin.cpp index 03729c3ac1..f99fcb3675 100644 --- a/editor/plugins/tiles/tiles_editor_plugin.cpp +++ b/editor/plugins/tiles/tiles_editor_plugin.cpp @@ -157,6 +157,17 @@ void TilesEditorPlugin::_update_editors() { // Update the viewport. CanvasItemEditor::get_singleton()->update_viewport(); + + // Update visibility of bottom panel buttons. + if (tileset_editor_button->is_pressed() && !tile_set.is_valid()) { + if (tile_map) { + editor_node->make_bottom_panel_item_visible(tilemap_editor); + } else { + editor_node->hide_bottom_panel(); + } + } + tileset_editor_button->set_visible(tile_set.is_valid()); + tilemap_editor_button->set_visible(tile_map); } void TilesEditorPlugin::_notification(int p_what) { |