From e334e0123cab24c6d00cc8999700cadc8a48e959 Mon Sep 17 00:00:00 2001 From: Matias Date: Thu, 13 Jun 2013 14:52:52 +0300 Subject: [PATCH] remove useless condition --- spine-lua/Animation.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-lua/Animation.lua b/spine-lua/Animation.lua index 4da1a62a6..6c575ff96 100644 --- a/spine-lua/Animation.lua +++ b/spine-lua/Animation.lua @@ -417,7 +417,7 @@ function Animation.AttachmentTimeline.new () if attachmentName then if not slot.attachment then slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName)) - elseif attachmentName and slot.attachment.name ~= attachmentName then + elseif slot.attachment.name ~= attachmentName then slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName)) end end