function util.combine_icons doesn't include icon_mipmaps
Posted: Tue Mar 31, 2020 9:41 pm
function util.combine_icons, in data/core/lualib/util.lua doesn't include a case to handle mipmaps.
Basically, in the "for _,icon_to_add in pairs(icons2) do" loop, just add a line that has icon.icon_mipmaps = icon_to_add.icon_mipmaps (probably directly after icon.size).
if it doesn't exist, icon_to_add.icon_mipmaps would just return nil, so icon.icon_mipmaps is set to nil, and not added, it's a purely optional tag for icons to have, and depending on the icon file, so you don't need an if else case to handle it like you do for shift and tint.
Basically, in the "for _,icon_to_add in pairs(icons2) do" loop, just add a line that has icon.icon_mipmaps = icon_to_add.icon_mipmaps (probably directly after icon.size).
if it doesn't exist, icon_to_add.icon_mipmaps would just return nil, so icon.icon_mipmaps is set to nil, and not added, it's a purely optional tag for icons to have, and depending on the icon file, so you don't need an if else case to handle it like you do for shift and tint.