summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-04 11:32:07 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-04 11:32:07 +0200
commit640d8151ff65c7d617da6a9dcc858ac5713a9628 (patch)
tree8a85678ef5f7b4da706b31d264fe77dad1918921
parent0c6aa7aeeffe32708e50f0466d8332bab63737f3 (diff)
parent825cb3e6c52b998cceb1a4bbaf06989de4121012 (diff)
downloadredot-engine-640d8151ff65c7d617da6a9dcc858ac5713a9628.tar.gz
Merge pull request #93876 from JacobMillner/fix-blend-times-sorting
Fix AnimationPlayer `blend_times` sorting
-rw-r--r--scene/animation/animation_player.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_player.h b/scene/animation/animation_player.h
index f270f32193..508b2c49fa 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);
}
}
};