remove useless condition

This commit is contained in:
Matias 2013-06-13 14:52:52 +03:00
parent 2fb6081a17
commit e334e0123c

View File

@ -417,7 +417,7 @@ function Animation.AttachmentTimeline.new ()
if attachmentName then if attachmentName then
if not slot.attachment then if not slot.attachment then
slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName)) 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)) slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName))
end end
end end