Merge pull request #23037 from SeleckyErik/issue-23036

Hide header and footer in AssetLib when not necessary
This commit is contained in:
Rémi Verschelde 2018-10-17 16:13:44 +02:00 committed by GitHub
commit 0d8284d3d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)