From 7782b01cdf42f1b27df1fe567dc33ab6a3c9e5cb Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Fri, 9 Apr 2021 17:30:55 +0200 Subject: [PATCH] [unity] Fixed a compile error occurring only on Unity 2017, Vector2 not supporting operator* (introduced by commit 758a83a). See #1876. --- .../spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs index 32ecaac06..699cfb3da 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs @@ -198,7 +198,7 @@ namespace Spine.Unity { parentBoneScale.x *= scaleBone.ScaleX; parentBoneScale.y *= scaleBone.ScaleY; } - localDelta *= parentBoneScale; + localDelta = Vector2.Scale(localDelta, parentBoneScale); localDelta *= AdditionalScale; localDelta.x *= rootMotionScaleX;