Fixed setSkin.

This commit is contained in:
NathanSweet 2013-05-31 10:40:26 +02:00
parent 7346b35a5c
commit 7444797839

View File

@ -88,7 +88,7 @@ function Skeleton.new (skeletonData)
if not newSkin then error("Skin not found: " .. skinName, 2) end
if self.skin then
-- Attach all attachments from the new skin if the corresponding attachment from the old skin is currently attached.
for k,v in self.skin.attachments do
for k,v in pairs(self.skin.attachments) do
local attachment = v[3]
local slotIndex = v[1]
local slot = self.slots[slotIndex]