From f5f91899f42651e24c2a94f95eec5cf4a08c1d29 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 26 Jan 2022 15:24:39 +0100 Subject: [PATCH] [csharp] Port fix of additive scale mixing. See #2028, see commit a5b6762. --- spine-csharp/src/Animation.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spine-csharp/src/Animation.cs b/spine-csharp/src/Animation.cs index c4dc2c5cf..7529888f4 100644 --- a/spine-csharp/src/Animation.cs +++ b/spine-csharp/src/Animation.cs @@ -773,8 +773,8 @@ namespace Spine { bone.scaleY = by + (Math.Abs(y) * Math.Sign(by) - by) * alpha; break; case MixBlend.Add: - bone.scaleX = (x - bone.data.scaleX) * alpha; - bone.scaleY = (y - bone.data.scaleY) * alpha; + bone.scaleX += (x - bone.data.scaleX) * alpha; + bone.scaleY += (y - bone.data.scaleY) * alpha; break; } } else { @@ -856,7 +856,7 @@ namespace Spine { bone.scaleX = bx + (Math.Abs(x) * Math.Sign(bx) - bx) * alpha; break; case MixBlend.Add: - bone.scaleX = (x - bone.data.scaleX) * alpha; + bone.scaleX += (x - bone.data.scaleX) * alpha; break; } } else { @@ -933,7 +933,7 @@ namespace Spine { bone.scaleY = by + (Math.Abs(y) * Math.Sign(by) - by) * alpha; break; case MixBlend.Add: - bone.scaleY = (y - bone.data.scaleY) * alpha; + bone.scaleY += (y - bone.data.scaleY) * alpha; break; } } else {