mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
cleanup
This commit is contained in:
parent
86d2e6a614
commit
b98bfcc135
2 changed files with 1 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ local this = {
|
||||||
INT_LINEAR = 2,
|
INT_LINEAR = 2,
|
||||||
INT_BEZIER = 3,
|
INT_BEZIER = 3,
|
||||||
|
|
||||||
TRACE_CODEGEN = true,
|
TRACE_CODEGEN = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
local INT_CONST = this.INT_CONST
|
local INT_CONST = this.INT_CONST
|
||||||
|
|
@ -156,7 +156,6 @@ local function codegen_track(raw_track, lineset, memoised, keysets, use_tsf)
|
||||||
code = code .. "\n local l" .. i .. " = (" ..
|
code = code .. "\n local l" .. i .. " = (" ..
|
||||||
process_expression(line.expression, memoised) .. ")"
|
process_expression(line.expression, memoised) .. ")"
|
||||||
elseif line.keys then
|
elseif line.keys then
|
||||||
debug.print(raw_track)
|
|
||||||
local target_keysets = keysets[lineset.target_name]
|
local target_keysets = keysets[lineset.target_name]
|
||||||
if not target_keysets then
|
if not target_keysets then
|
||||||
target_keysets = {}
|
target_keysets = {}
|
||||||
|
|
|
||||||
|
|
@ -93,13 +93,11 @@ local function parse_track(root)
|
||||||
table.insert(lineset.lines, line)
|
table.insert(lineset.lines, line)
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
debug.print(raw_track)
|
|
||||||
return raw_track
|
return raw_track
|
||||||
end
|
end
|
||||||
|
|
||||||
local function load_vca(source, filepath)
|
local function load_vca(source, filepath)
|
||||||
local raw_track = parse_track(xml.parse_vcd(source, "track"))
|
local raw_track = parse_track(xml.parse_vcd(source, "track"))
|
||||||
debug.print(raw_track)
|
|
||||||
return animation.compile_track(raw_track, filepath)
|
return animation.compile_track(raw_track, filepath)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue