Fix #116415: Show Empty text for Current Asset Library

Show "No items" if item count is less than one, to include situations
where it is -1

Pull Request: https://projects.blender.org/blender/blender/pulls/116446
This commit is contained in:
Harley Acheson
2023-12-21 20:09:29 +01:00
committed by Harley Acheson
parent bf96f6cda9
commit 341c54ce21

View File

@@ -1166,7 +1166,7 @@ void file_draw_list(const bContext *C, ARegion *region)
}
}
if (numfiles == 0) {
if (numfiles < 1) {
const rcti tile_draw_rect = tile_draw_rect_get(
v2d, layout, eFileDisplayType(params->display), 0, 0);
const uiStyle *style = UI_style_get();