[LayaAir 1.0]骨灰级的bug

远古骨灰级的bug,自从内测开始,就一直未修正过,曾经上报过,但是无果
每次更新版本,都要手动清理此bug
关键是此行代码还标志: //TODO:矫正
 
2.0不知道,因为一直用1.0的版本
 
代码错误位置: AnimationPlayer.as 222行 , 二二二。。。。。
_currentKeyframeIndex = Math.max(Math.floor(currentPlayTime / cacheFrameInterval), 0);//TODO:矫正
 
修正后的正确值:
_currentKeyframeIndex = Math.round(currentPlayTime / cacheFrameInterval);//TODO:矫正
 
 
不修正的话,此条件一直不会满足,想手动控制跳帧,无法跳
currentAni是Skeleton动画
if(this.currentAni.index==this.currentAni.total-1)
{
   
}
QQ截图20190309003138.png
已邀请:

Aar0n

赞同来自:

原则上需要提供复现的demo,这种无demo 的,以前提交也会被驳回,而且看描述,也无法得知您需要的具体情况,
这个bug是引擎设计问题还是逻辑bug 不好确定,希望您能提供demo,这样问题能更顺利解决,不然我们双方的努力都是徒劳。demo还是要有的

要回复问题请先

商务合作
商务合作