Matias 12 years ago
parent
commit
2fb6081a17
1 changed files with 7 additions and 7 deletions
  1. 7 7
      spine-lua/Animation.lua

+ 7 - 7
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