Skip to content

Commit

Permalink
Fix master animations not propagating since the last release
Browse files Browse the repository at this point in the history
  • Loading branch information
acidbubbles committed Dec 30, 2020
1 parent de6c8d1 commit de6ca63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Folder.DotSettings
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CompareOfFloatsByEqualityOperator/@EntryIndexedValue">SUGGESTION</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ForCanBeConvertedToForeach/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ForeachCanBePartlyConvertedToQueryUsingAnotherGetEnumerator/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ParameterHidesMember/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=Constants/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=Property/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /&gt;</s:String>
Expand Down
4 changes: 2 additions & 2 deletions src/AtomAnimations/AtomAnimation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit de6ca63

Please sign in to comment.