Переглянути джерело

Merge pull request #93876 from JacobMillner/fix-blend-times-sorting

Fix AnimationPlayer `blend_times` sorting
Rémi Verschelde 1 рік тому
батько
коміт
640d8151ff
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      scene/animation/animation_player.h

+ 2 - 2
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);
 			}
 		}
 	};