Browse Source

fixed texture processing

pull/880/head
NiHoel 6 years ago
parent
commit
e673117a32
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/js/libpannellum.js

+ 3
- 3
src/js/libpannellum.js View 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 {


Loading…
Cancel
Save