Fix crash related to model preview

This commit is contained in:
Jean-Patrick Guerrero 2021-08-11 17:46:17 +02:00
parent b53959f177
commit 8a5a14747e

View File

@ -1550,7 +1550,7 @@ local function get_model_fs(fs, data, def, model_alias)
_name = fmt("%s^[multiply:%s", v.name, v.color) _name = fmt("%s^[multiply:%s", v.name, v.color)
end end
elseif v.animation then elseif v.animation then
_name = fmt("%s^[verticalframe:%u:0", v.name, v.animation.aspect_h) _name = fmt("%s^[verticalframe:%u:0", v.name, v.animation.frames_h or v.animation.aspect_h)
end end
t[#t + 1] = _name or v.name or v t[#t + 1] = _name or v.name or v