Fixed animations without bone keys.

This commit is contained in:
NathanSweet 2013-08-16 17:45:16 +02:00
parent fd73ec64fa
commit 2e88c59280

View File

@ -162,6 +162,7 @@ function SkeletonJson.new (attachmentLoader)
local duration = 0
local bonesMap = map["bones"]
if bonesMap then
for boneName,timelineMap in pairs(bonesMap) do
local boneIndex = skeletonData:findBoneIndex(boneName)
if boneIndex == -1 then error("Bone not found: " .. boneName) end
@ -209,6 +210,7 @@ function SkeletonJson.new (attachmentLoader)
end
end
end
end
local slotsMap = map["slots"]
if slotsMap then