mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[lua] Fix reading stepped curve, see #1903
This commit is contained in:
parent
4b4349f0ce
commit
d3f9885fbc
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user