From 2fb6081a17f6b25a9a85b52b3c512fcca9c12387 Mon Sep 17 00:00:00 2001 From: Matias Date: Thu, 13 Jun 2013 14:50:31 +0300 Subject: [PATCH] fix tabs --- spine-lua/Animation.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spine-lua/Animation.lua b/spine-lua/Animation.lua index 4ba650705..4da1a62a6 100644 --- a/spine-lua/Animation.lua +++ b/spine-lua/Animation.lua @@ -413,14 +413,14 @@ function Animation.AttachmentTimeline.new () end local attachmentName = self.attachmentNames[frameIndex] - local slot = skeleton.slotsByName[self.slotName] - if attachmentName then - if not slot.attachment then - slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName)) - elseif attachmentName and slot.attachment.name ~= attachmentName then - slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName)) - end + local slot = skeleton.slotsByName[self.slotName] + if attachmentName then + if not slot.attachment then + slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName)) + elseif attachmentName and slot.attachment.name ~= attachmentName then + slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName)) end + end end