mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
Fixed animations without bone keys.
This commit is contained in:
parent
fd73ec64fa
commit
2e88c59280
@ -162,6 +162,7 @@ function SkeletonJson.new (attachmentLoader)
|
|||||||
local duration = 0
|
local duration = 0
|
||||||
|
|
||||||
local bonesMap = map["bones"]
|
local bonesMap = map["bones"]
|
||||||
|
if bonesMap then
|
||||||
for boneName,timelineMap in pairs(bonesMap) do
|
for boneName,timelineMap in pairs(bonesMap) do
|
||||||
local boneIndex = skeletonData:findBoneIndex(boneName)
|
local boneIndex = skeletonData:findBoneIndex(boneName)
|
||||||
if boneIndex == -1 then error("Bone not found: " .. boneName) end
|
if boneIndex == -1 then error("Bone not found: " .. boneName) end
|
||||||
@ -209,6 +210,7 @@ function SkeletonJson.new (attachmentLoader)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local slotsMap = map["slots"]
|
local slotsMap = map["slots"]
|
||||||
if slotsMap then
|
if slotsMap then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user