Browse Source

remove useless condition

Matias 12 năm trước cách đây
mục cha
commit
e334e0123c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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