mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
update animation api
This commit is contained in:
parent
aa6ac5f5bd
commit
21bd5ba1b2
3 changed files with 33 additions and 19 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue