diff options
author | homer666 <homer666@users.noreply.github.com> | 2019-04-24 04:30:03 +1000 |
---|---|---|
committer | homer666 <homer666@users.noreply.github.com> | 2019-04-24 04:31:53 +1000 |
commit | 1aaab30a2b021e8b559471c817946e07d514864d (patch) | |
tree | 36e355105aae0df822808ce86c2930e6bc83f0b1 /editor/plugins/tile_map_editor_plugin.cpp | |
parent | 6098a7f1914f64c77d689f54d5432095911b744f (diff) |
Hide "Tilemap" menu properly in CanvasItem view
Diffstat (limited to 'editor/plugins/tile_map_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/tile_map_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp index 467b83f4f8..1e2b17485f 100644 --- a/editor/plugins/tile_map_editor_plugin.cpp +++ b/editor/plugins/tile_map_editor_plugin.cpp @@ -1949,6 +1949,7 @@ TileMapEditor::TileMapEditor(EditorNode *p_editor) { // Container to the right of the toolbar toolbar_right = memnew(HBoxContainer); + toolbar_right->hide(); toolbar_right->set_h_size_flags(SIZE_EXPAND_FILL); toolbar_right->set_alignment(BoxContainer::ALIGN_END); CanvasItemEditor::get_singleton()->add_control_to_menu_panel(toolbar_right); @@ -2045,10 +2046,12 @@ void TileMapEditorPlugin::make_visible(bool p_visible) { tile_map_editor->show(); tile_map_editor->get_toolbar()->show(); + tile_map_editor->get_toolbar_right()->show(); } else { tile_map_editor->hide(); tile_map_editor->get_toolbar()->hide(); + tile_map_editor->get_toolbar_right()->hide(); tile_map_editor->edit(NULL); } } |