mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[lua] Fixed typo in SkeletonJson, closes #893
This commit is contained in:
parent
d94170b411
commit
c496c0aa08
@ -256,7 +256,7 @@ function SkeletonJson.new (attachmentLoader)
|
|||||||
-- Linked meshes
|
-- Linked meshes
|
||||||
for i, linkedMesh in ipairs(self.linkedMeshes) do
|
for i, linkedMesh in ipairs(self.linkedMeshes) do
|
||||||
local skin = skeletonData.defaultSkin
|
local skin = skeletonData.defaultSkin
|
||||||
if linkedMesh.skin then skin = skeletonData.findSkin(linkedMesh.skin) end
|
if linkedMesh.skin then skin = skeletonData:findSkin(linkedMesh.skin) end
|
||||||
if not skin then error("Skin not found: " .. linkedMesh.skin) end
|
if not skin then error("Skin not found: " .. linkedMesh.skin) end
|
||||||
local parent = skin:getAttachment(linkedMesh.slotIndex, linkedMesh.parent)
|
local parent = skin:getAttachment(linkedMesh.slotIndex, linkedMesh.parent)
|
||||||
if not parent then error("Parent mesh not found: " + linkedMesh.parent) end
|
if not parent then error("Parent mesh not found: " + linkedMesh.parent) end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user