[lua] Fixed typo in SkeletonJson, closes #893

This commit is contained in:
badlogic 2017-05-08 12:38:31 +02:00
parent d94170b411
commit c496c0aa08

View File

@ -256,7 +256,7 @@ function SkeletonJson.new (attachmentLoader)
-- Linked meshes
for i, linkedMesh in ipairs(self.linkedMeshes) do
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
local parent = skin:getAttachment(linkedMesh.slotIndex, linkedMesh.parent)
if not parent then error("Parent mesh not found: " + linkedMesh.parent) end