diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-17 16:13:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 16:13:44 +0200 |
commit | 0d8284d3d4f439e074bf498af81e8c73be23cc67 (patch) | |
tree | 510e4768b105a6966c41b85f27aa2470b2efe5f8 /editor | |
parent | b1cd673e180ece86b74fc228c8221de2816da3e1 (diff) | |
parent | cd759c773d45143648919e7c002dc65941c8790b (diff) |
Merge pull request #23037 from SeleckyErik/issue-23036
Hide header and footer in AssetLib when not necessary
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/asset_library_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index 66770d98e5..138b8a491c 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -962,6 +962,9 @@ HBoxContainer *EditorAssetLibrary::_make_pages(int p_page, int p_page_count, int HBoxContainer *hbc = memnew(HBoxContainer); + if (p_page_count < 2) + return hbc; + //do the mario int from = p_page - 5; if (from < 0) |