瀏覽代碼

[lua] Port of additive blending fix, see #1322.

badlogic 6 年之前
父節點
當前提交
97ff156362
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-lua/AnimationState.lua

+ 1 - 1
spine-lua/AnimationState.lua

@@ -347,7 +347,7 @@ function AnimationState:apply (skeleton)
 			local animationLast = current.animationLast
 			local animationTime = current:getAnimationTime()
 			local timelines = current.animation.timelines
-			if i == 0 and (mix == 1 or blend == MixBlend.add) then
+			if (i == 0 and mix == 1) or blend == MixBlend.add then
 				for i,timeline in ipairs(timelines) do
 					timeline:apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection._in)
 				end