From 075439f40582b32a4dccd093e1c17cb98cdbd3e5 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sat, 25 Jul 2009 18:16:37 +0000 Subject: [PATCH] Fix bugs in kara-templater causing tenv.relayer and tenv.restyle functions to fail. Closes #950. Originally committed to SVN as r3277. --- aegisub/automation/autoload/kara-templater.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/automation/autoload/kara-templater.lua b/aegisub/automation/autoload/kara-templater.lua index ad84d474d..b63b5c1b6 100644 --- a/aegisub/automation/autoload/kara-templater.lua +++ b/aegisub/automation/autoload/kara-templater.lua @@ -348,13 +348,13 @@ function apply_templates(meta, styles, subs, templates) tenv.fxgroup = {} tenv.relayer = function(layer) - line.layer = layer + tenv.line.layer = layer return "" end tenv.restyle = function(style) - line.style = style - line.styleref = styles[style] + tenv.line.style = style + tenv.line.styleref = styles[style] return "" end