[lua] Fix reading stepped curve, see #1903

This commit is contained in:
badlogic 2021-06-15 13:42:39 +02:00
parent 4b4349f0ce
commit d3f9885fbc

View File

@ -1163,7 +1163,7 @@ function SkeletonJson.new (attachmentLoader)
readCurve = function (curve, timeline, bezier, frame, value, time1, time2, value1, value2, scale)
if curve == "stepped" then
if value ~= 0 then timeline:setStepped(frame) end
timeline:setStepped(frame)
return bezier
end
local i = value * 4 + 1