diff --git a/spine-lua/AnimationState.lua b/spine-lua/AnimationState.lua index 3889ec59a..4540e93ee 100644 --- a/spine-lua/AnimationState.lua +++ b/spine-lua/AnimationState.lua @@ -820,16 +820,16 @@ function AnimationState:setTimelineModes(entry) local skip while i <= timelinesCount do local id = "" .. timelines[i]:getPropertyId() - if not (propertyIDs[id] == nil) then + if propertyIDs[id] then timelineMode[i] = SUBSEQUENT else propertyIDs[id] = id - if (to == nil or not self:hasTimeline(to, id)) then + if to == nil or not self:hasTimeline(to, id) then timelineMode[i] = FIRST else local next = to.mixingTo + skip = false while next do - skip = false if not self:hasTimeline(id) then if entry.mixDuration > 0 then timelineMode[i] = HOLD_MIX