mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
cleanup expressions environment
This commit is contained in:
parent
6f6b26327d
commit
21c8f5caa3
1 changed files with 8 additions and 1 deletions
|
|
@ -134,7 +134,14 @@ local env = {
|
|||
end,
|
||||
dump = debug.print
|
||||
}
|
||||
table.extend(env, math)
|
||||
|
||||
local math_funcs = {
|
||||
"sqrt", "min", "max", "deg", "rad", "log", "log10", "floor", "ceil", "sin",
|
||||
"tan", "noise", "noise2", "sign", "round", "exp", "pi", "e"
|
||||
}
|
||||
for _, name in ipairs(math_funcs) do
|
||||
env[name] = math[name]
|
||||
end
|
||||
|
||||
local function codegen_track(raw_track, lineset, memoised, keysets, use_tsf)
|
||||
local lines = lineset.lines
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue