浏览代码

Merge branch '3.7-beta' into 3.7-beta-cpp

badlogic 7 年之前
父节点
当前提交
92eef7f9f1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      spine-lua/AnimationState.lua

+ 3 - 3
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