From 6cede1d8446d510942411e8680cdb1426806d816 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Mon, 20 Jan 2014 17:19:21 -0500 Subject: [PATCH] The columnlistarea object will only update its children if they are within its boundaries --- objects/internal/columnlist/columnlistarea.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/objects/internal/columnlist/columnlistarea.lua b/objects/internal/columnlist/columnlistarea.lua index 29994bf..49cfc61 100644 --- a/objects/internal/columnlist/columnlistarea.lua +++ b/objects/internal/columnlist/columnlistarea.lua @@ -73,7 +73,10 @@ function newobject:update(dt) end for k, v in ipairs(children) do - v:update(dt) + local col = loveframes.util.BoundingBox(self.x, v.x, self.y, v.y, self.width, v.width, self.height, v.height) + if col then + v:update(dt) + end v:SetClickBounds(self.x, self.y, self.width, self.height) v.y = (v.parent.y + v.staticy) - self.offsety + cheight v.x = (v.parent.x + v.staticx) - self.offsetx @@ -133,7 +136,7 @@ function newobject:draw() for k, v in ipairs(children) do local col = loveframes.util.BoundingBox(self.x, v.x, self.y, v.y, self.width, v.width, self.height, v.height) - if col == true then + if col then v:draw() end end