Jelajahi Sumber

remove useless condition

Matias 12 tahun lalu
induk
melakukan
e334e0123c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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