- Added floor, ceil and abs to reactive env

- Changed BasaltProgram env (not finished)
- Fixed program not setting running to false once coroutine is dead
This commit is contained in:
Robert Jelic
2025-04-23 20:39:35 +02:00
parent 743e2f20fa
commit b042f1bba1
4 changed files with 29 additions and 11 deletions

View File

@@ -14,7 +14,10 @@ local mathEnv = {
end,
round = function(val)
return math.floor(val + 0.5)
end
end,
floor = math.floor,
ceil = math.ceil,
abs = math.abs
}
local function parseExpression(expr, element, propName)