Forráskód Böngészése

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 <[email protected]>
Jacob Millner 1 éve
szülő
commit
825cb3e6c5
1 módosított fájl, 2 hozzáadás és 2 törlés
  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 {
 		bool operator<(const BlendKey &bk) const {
 			if (from == bk.from) {
 			if (from == bk.from) {
-				return to < bk.to;
+				return StringName::AlphCompare()(to, bk.to);
 			} else {
 			} else {
-				return from < bk.from;
+				return StringName::AlphCompare()(from, bk.from);
 			}
 			}
 		}
 		}
 	};
 	};