瀏覽代碼

remove useless condition

Matias 12 年之前
父節點
當前提交
e334e0123c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-lua/Animation.lua

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