Explorar o código

remove useless condition

Matias %!s(int64=12) %!d(string=hai) anos
pai
achega
e334e0123c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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