From 5310de45f0261dfcf2d4ad4ff1fc7e7a84b4b659 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 25 Sep 2026 23:32:59 +0300 Subject: [PATCH] fix: cos function is not available in VCA expressions --- res/modules/internal/animation_codegen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/modules/internal/animation_codegen.lua b/res/modules/internal/animation_codegen.lua index 7eadfb4e6..66db0bed4 100644 --- a/res/modules/internal/animation_codegen.lua +++ b/res/modules/internal/animation_codegen.lua @@ -121,7 +121,7 @@ local env = { local math_funcs = { "sqrt", "min", "max", "deg", "rad", "log", "log10", "floor", "ceil", "sin", - "tan", "noise", "noise2", "sign", "round", "exp", "pi", "e" + "cos", "tan", "noise", "noise2", "sign", "round", "exp", "pi", "e" } for _, name in ipairs(math_funcs) do env[name] = math[name]