From 8a5a14747e7d241bab08134da94ff3f5c08e0b26 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Wed, 11 Aug 2021 17:46:17 +0200 Subject: [PATCH] Fix crash related to model preview --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 32d38f4..1877f11 100644 --- a/init.lua +++ b/init.lua @@ -1550,7 +1550,7 @@ local function get_model_fs(fs, data, def, model_alias) _name = fmt("%s^[multiply:%s", v.name, v.color) end 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 t[#t + 1] = _name or v.name or v