[lua] Fix parsing of path constraint timelines. Fixes #1466.

This commit is contained in:
badlogic 2019-09-12 15:01:20 +02:00
parent e74274eebe
commit d66d3daef0

View File

@ -680,8 +680,8 @@ function SkeletonJson.new (attachmentLoader)
end end
-- Path constraint timelines. -- Path constraint timelines.
if map.paths then if map.path then
for constraintName,constraintMap in pairs(map.paths) do for constraintName,constraintMap in pairs(map.path) do
local index = skeletonData:findPathConstraintIndex(constraintName) local index = skeletonData:findPathConstraintIndex(constraintName)
if index == -1 then error("Path constraint not found: " .. constraintName, 2) end if index == -1 then error("Path constraint not found: " .. constraintName, 2) end
local data = skeletonData.pathConstraints[index] local data = skeletonData.pathConstraints[index]