Sfoglia il codice sorgente

fixed texture processing

pull/880/head
NiHoel 6 anni fa
parent
commit
e673117a32
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      src/js/libpannellum.js

+ 3
- 3
src/js/libpannellum.js Vedi File

@@ -1565,12 +1565,12 @@ function Renderer(container) {
this.texture = texture;
this.callback = callback;
if (src instanceof Function) {
src(node, this.image, this.texture).then(img => {
if (!image)
src(JSON.parse(JSON.stringify(node)), this.image, this.texture).then(img => {
if (!img)
this.callback(this.texture, false);
else if (img != this.image) {
processLoadedTexture(img, this.texture);
this.callback(img, true);
this.callback(this.texture, true);
}
})
} else {


Caricamento…
Annulla
Salva