Skip to content

Commit

Permalink
Fix #1786
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Nov 12, 2024
1 parent 7f58e6b commit d6ea347
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/sources/tab_materials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ function tab_materials_draw_slots(mini: bool) {
let ui: ui_t = ui_base_ui;
let slotw: i32 = math_floor(51 * ui_SCALE(ui));
let num: i32 = math_floor(config_raw.layout[layout_size_t.SIDEBAR_W] / slotw);
if (num == 0) {
return;
}

for (let row: i32 = 0; row < math_floor(math_ceil(project_materials.length / num)); ++row) {
let mult: i32 = config_raw.show_asset_names ? 2 : 1;
Expand Down

0 comments on commit d6ea347

Please sign in to comment.