From 825cb3e6c52b998cceb1a4bbaf06989de4121012 Mon Sep 17 00:00:00 2001 From: Jacob Millner Date: Wed, 3 Jul 2024 09:56:39 -0400 Subject: [PATCH] fix the sorting of blend_times in animation player Modify BlendKey's sort to use AlphaCompare in order to create a deterministic sort Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> --- scene/animation/animation_player.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/animation/animation_player.h b/scene/animation/animation_player.h index f270f32193f..508b2c49fa8 100644 --- a/scene/animation/animation_player.h +++ b/scene/animation/animation_player.h @@ -95,9 +95,9 @@ private: } bool operator<(const BlendKey &bk) const { if (from == bk.from) { - return to < bk.to; + return StringName::AlphCompare()(to, bk.to); } else { - return from < bk.from; + return StringName::AlphCompare()(from, bk.from); } } };