mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-20 00:36:43 +08:00
Fixed setSkin.
This commit is contained in:
parent
7346b35a5c
commit
7444797839
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user