From 2978da1eb2fae0a9d21467547efdbd7020a5456b Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Fri, 28 Jun 2013 10:41:04 +0200 Subject: [PATCH] Fixed issue #80. --- spine-love/spine-love/spine.lua | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/spine-love/spine-love/spine.lua b/spine-love/spine-love/spine.lua index 53a087f0d..da56e00e6 100644 --- a/spine-love/spine-love/spine.lua +++ b/spine-love/spine-love/spine.lua @@ -68,22 +68,11 @@ function spine.Skeleton.new (skeletonData, group) for i,slot in ipairs(self.drawOrder) do local attachment = slot.attachment local image = images[attachment] - if not attachment then - -- Attachment is gone, remove the image. - if image then - images[attachment] = nil - end - else - -- Attachment image has changed. - if image and image.attachment ~= attachment then - image:removeSelf() - image = nil - end + if attachment then -- Create new image. if not image then image = self:createImage(attachment) if image then - image.attachment = attachment local imageWidth = image:getWidth() local imageHeight = image:getHeight() attachment.widthRatio = attachment.width / imageWidth