[lua] Minor clean up.

This commit is contained in:
badlogic 2018-09-11 16:40:05 +02:00
parent 44dd0cfa2b
commit d8c5427ef2

View File

@ -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