mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 00:30:12 +08:00
[lua] Fix parsing of path constraint timelines. Fixes #1466.
This commit is contained in:
parent
e74274eebe
commit
d66d3daef0
@ -680,8 +680,8 @@ function SkeletonJson.new (attachmentLoader)
|
||||
end
|
||||
|
||||
-- Path constraint timelines.
|
||||
if map.paths then
|
||||
for constraintName,constraintMap in pairs(map.paths) do
|
||||
if map.path then
|
||||
for constraintName,constraintMap in pairs(map.path) do
|
||||
local index = skeletonData:findPathConstraintIndex(constraintName)
|
||||
if index == -1 then error("Path constraint not found: " .. constraintName, 2) end
|
||||
local data = skeletonData.pathConstraints[index]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user