From 69b2a5ce13e4b213b9feda6deec290ccc35d0e0f Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 17 Mar 2022 17:44:29 +0100 Subject: [PATCH] [unity] Fixed RootMotion components temp movement not being completely cleared when using FixedUpdate. Closes #2046. --- .../spine-unity/Components/RootMotion/SkeletonRootMotionBase.cs | 2 ++ 1 file changed, 2 insertions(+) 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 8cd974f8c..06a04a1d1 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 @@ -37,6 +37,7 @@ namespace Spine.Unity { /// /// Base class for skeleton root motion components. /// + [DefaultExecutionOrder(1)] abstract public class SkeletonRootMotionBase : MonoBehaviour { #region Inspector @@ -155,6 +156,7 @@ namespace Spine.Unity { Vector2 parentBoneScale; GetScaleAffectingRootMotion(out parentBoneScale); ClearEffectiveBoneOffsets(parentBoneScale); + skeletonComponent.Skeleton.UpdateWorldTransform(); previousRigidbodyRootMotion = rigidbodyDisplacement; ClearRigidbodyTempMovement();