From de6ca6321cf5ab8c5b726c66f9871622bbf4e036 Mon Sep 17 00:00:00 2001 From: Acid Bubbles Date: Tue, 29 Dec 2020 21:53:26 -0500 Subject: [PATCH] Fix master animations not propagating since the last release --- Folder.DotSettings | 1 + src/AtomAnimations/AtomAnimation.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Folder.DotSettings b/Folder.DotSettings index 29cd16d7..5db87322 100644 --- a/Folder.DotSettings +++ b/Folder.DotSettings @@ -1,6 +1,7 @@  SUGGESTION DO_NOT_SHOW + DO_NOT_SHOW HINT <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> diff --git a/src/AtomAnimations/AtomAnimation.cs b/src/AtomAnimations/AtomAnimation.cs index cf94cfa8..1dfe84e2 100644 --- a/src/AtomAnimations/AtomAnimation.cs +++ b/src/AtomAnimations/AtomAnimation.cs @@ -425,10 +425,10 @@ private void AdvanceClipsTime(float delta) private void Blend(AtomAnimationClip clip, float weight, float duration) { - clip.playbackEnabled = true; + if (!clip.playbackEnabled) clip.playbackBlendWeight = 0f; clip.playbackBlendRate = (weight - clip.playbackBlendWeight) / duration; if (clip.playbackEnabled) return; - clip.playbackBlendWeight = 0; + clip.playbackEnabled = true; onClipIsPlayingChanged.Invoke(clip); }