Skip to content

Commit

Permalink
fix: tolerate duplicate bindings in animation clips
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed Feb 17, 2025
1 parent 291d733 commit d1db784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Editor/API/AnimatorServices/VirtualObjects/VirtualClip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ private VirtualClip(AnimationClip clip, bool isMarker)

foreach (var binding in AnimationUtility.GetCurveBindings(clip))
{
_curveCache.Add(binding, new CachedCurve<AnimationCurve>());
_curveCache[binding] = new CachedCurve<AnimationCurve>();
}

foreach (var binding in AnimationUtility.GetObjectReferenceCurveBindings(clip))
{
_pptrCurveCache.Add(binding, new CachedCurve<ObjectReferenceKeyframe[]>());
_pptrCurveCache[binding] = new CachedCurve<ObjectReferenceKeyframe[]>();
}
}

Expand Down

0 comments on commit d1db784

Please sign in to comment.