add 'model' directive

This commit is contained in:
MihailRis 2026-10-08 23:27:45 +03:00
parent 26d09f750b
commit a036a590ab
3 changed files with 4 additions and 0 deletions

View file

@ -192,6 +192,8 @@ local function codegen_track(raw_track, lineset, keysets, use_tsf, target_type)
elseif line.channel == animation.CH_TEXTURE then
code = code .. string.format("\n target:set_texture(%s, l%d)",
lineset.target_name:escape(), i)
elseif line.channel == animation.CH_MODEL then
code = code .. string.format("\n target:set_model(bone_index, l%d)", i)
elseif line.channel == animation.CH_SHOW then
if target_type == "bone" then
code = code .. string.format("\n target:set_visible(bone_index, l%d)", i)