mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 02:19:44 +00:00
add 'color' VCA directive
This commit is contained in:
parent
371b8baed1
commit
51c8d78b88
3 changed files with 14 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ local action_to_channel = {
|
|||
texture = animation.CH_TEXTURE,
|
||||
show = animation.CH_SHOW,
|
||||
model = animation.CH_MODEL,
|
||||
color = animation.CH_COLOR,
|
||||
}
|
||||
|
||||
local curve_to_interp = {
|
||||
|
|
@ -115,7 +116,7 @@ local function parse_directive(node, raw_track)
|
|||
error("unknown directive " .. tag:escape())
|
||||
end
|
||||
local line = {
|
||||
axis = node.by and ("xyz"):find(node.by) or "",
|
||||
axis = node.by and (("xyz"):find(node.by) or ("rgba"):find(node.by)) or "",
|
||||
channel = channel,
|
||||
period = node.period or animation.MAX_FRAMES
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue