[LayaAirIDE 2.0]IDE时间轴动画帧数乱序导致的bug

class FrameAnimation extends AnimationBase {
constructor() {
super();
if (FrameAnimation._sortIndexFun === null) {
FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true);
}
}
 
FrameAnimation初始化时_sortIndexFun 方法没有被赋值
 
导致_calculateKeyFrames中
tKeyFrames.sort(FrameAnimation._sortIndexFun);
对帧数据进行排序时.没有按照帧数排序.引发了帧数错乱的问题.
 
请大佬看看这是bug.还是设计如此
已邀请:

Aar0n

赞同来自:

需要上传 复现demo的

159*****179

赞同来自:

好了.可以看到动画播放问题.代码bug的地方加了log

159*****179

赞同来自:

顶顶顶顶顶顶

133*****831

赞同来自:

https://ask.layabox.com/question/44880  看这个可以解决一下

要回复问题请先

商务合作
商务合作