From 9737b3f94f03206b78c6468da0912f4f575b2424 Mon Sep 17 00:00:00 2001 From: Colby Klein Date: Fri, 10 Jun 2011 23:43:21 -0700 Subject: [PATCH] Fix MaskSource. clearzbuffer likes to behave badly. --- Themes/_fallback/Scripts/03 ProductivityHelpers.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Themes/_fallback/Scripts/03 ProductivityHelpers.lua b/Themes/_fallback/Scripts/03 ProductivityHelpers.lua index 0d9fbd2816..4297389fc6 100644 --- a/Themes/_fallback/Scripts/03 ProductivityHelpers.lua +++ b/Themes/_fallback/Scripts/03 ProductivityHelpers.lua @@ -148,7 +148,9 @@ end -- MaskSource([clearzbuffer]) -- Sets an actor up as the source for a mask. Clears zBuffer by default. function Actor:MaskSource(noclear) - self:clearzbuffer(noclear or true) + if noclear == true then + self:clearzbuffer(true) + end self:zwrite(true) self:blend('BlendMode_NoEffect') end