mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-04 06:39:09 +08:00
[csharp] Port of additive blending fix, see #1322.
This commit is contained in:
parent
97ff156362
commit
ab9b5dc731
@ -222,7 +222,7 @@ namespace Spine {
|
|||||||
int timelineCount = current.animation.timelines.Count;
|
int timelineCount = current.animation.timelines.Count;
|
||||||
var timelines = current.animation.timelines;
|
var timelines = current.animation.timelines;
|
||||||
var timelinesItems = timelines.Items;
|
var timelinesItems = timelines.Items;
|
||||||
if (i == 0 && (mix == 1 || blend == MixBlend.Add)) {
|
if ((i == 0 && mix == 1) || blend == MixBlend.Add) {
|
||||||
for (int ii = 0; ii < timelineCount; ii++)
|
for (int ii = 0; ii < timelineCount; ii++)
|
||||||
timelinesItems[ii].Apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection.In);
|
timelinesItems[ii].Apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection.In);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user