[LayaAir 2.0]laya.spine.js问题以及spine.core.js问题

* 使用过程中发现的两个低级错误
 
 
laya.spine.js:
 
SpineTemplet_3_x  和SpineTemplet_4_0 这两个类的loop方法里有一些问题,assetManager的错误检测应为放在完成检测之前吧,这样会导致真的发生了加载错误,因为parseSpineAni会报错,导致ERROR事件也抛不出去。
 
private loop() {
if (this.assetManager.isLoadingComplete()) {
this.parseSpineAni();
return;
}
if (this.assetManager.hasErrors()) {
this.event(Event.ERROR, "load failed:" + this.assetManager.getErrors());
return;
}
Laya.timer.frameOnce(1, this, this.loop);
}

 
 
 
 
==========================================================================
 
 
 
 
 
 
 spine-core-3.7.js问题:
代理里有语法错误,state  !== status
 
  }, (state, responseText) => {
this.errors[path] = `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`;
if (error)
error(path, `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`);
this.toLoad--;
this.loaded++;
});
srchttp___upload-images.jianshu_.io_upload_images_20517791-8078a95b73f4ac06_.jpeg
已邀请:

kylin9718

赞同来自:

感谢反馈。
第一点确认确实为bug,在特定情况下会有问题,我们会在下个版本进行修复。
第二点非bug,spine-core.js是spine官方的库,下载部分的代码已经替换为Laya引擎的方案,不再使用spine本身的方法,出现问题的地方并不会执行到,相关问题我们也会和spine官方反馈。

第七天堂

赞同来自:

!== 表示强制执行类型判断 严格比较

要回复问题请先

商务合作
商务合作