[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.还是设计如此
constructor() {
super();
if (FrameAnimation._sortIndexFun === null) {
FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true);
}
}
FrameAnimation初始化时_sortIndexFun 方法没有被赋值
导致_calculateKeyFrames中
tKeyFrames.sort(FrameAnimation._sortIndexFun);
对帧数据进行排序时.没有按照帧数排序.引发了帧数错乱的问题.
请大佬看看这是bug.还是设计如此
没有找到相关结果
已邀请:
要回复问题请先登录
4 个回复
Aar0n
赞同来自:
159*****179
赞同来自:
159*****179
赞同来自:
133*****831
赞同来自: