mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge branch '3.8' into 3.9-beta
This commit is contained in:
commit
161c3a9140
@ -114,7 +114,6 @@ module spine {
|
|||||||
if (!this.queueAsset(clientId, textureLoader, path)) return;
|
if (!this.queueAsset(clientId, textureLoader, path)) return;
|
||||||
|
|
||||||
let img = new Image();
|
let img = new Image();
|
||||||
img.src = path;
|
|
||||||
img.crossOrigin = "anonymous";
|
img.crossOrigin = "anonymous";
|
||||||
img.onload = (ev) => {
|
img.onload = (ev) => {
|
||||||
this.rawAssets[path] = img;
|
this.rawAssets[path] = img;
|
||||||
@ -122,6 +121,7 @@ module spine {
|
|||||||
img.onerror = (ev) => {
|
img.onerror = (ev) => {
|
||||||
this.errors[path] = `Couldn't load image ${path}`;
|
this.errors[path] = `Couldn't load image ${path}`;
|
||||||
}
|
}
|
||||||
|
img.src = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
get (clientId: string, path: string) {
|
get (clientId: string, path: string) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user