update animation api

This commit is contained in:
MihailRis 2026-09-10 19:09:49 +03:00
parent aa6ac5f5bd
commit 21bd5ba1b2
3 changed files with 33 additions and 19 deletions

View file

@ -182,7 +182,7 @@ local function codegen_track(raw_track, lineset, memoised, keysets, use_tsf)
local axis_names = {"X", "Y", "Z"}
local axis_indices = {X=1, Y=2, Z=3}
local rotation_order = raw_track.rotation_order
local rotation_order = raw_track.rotation_order or "XYZ"
for i=1,3 do
local axis = axis_indices[rotation_order[i]]
local var = rotation[axis]