Browse Source

Fix bug in multires performance improvements (fixes #935).

This seems to be caused by a race condition, but adding a check to make sure
the node is defined seems to fix it.
pull/940/head
Matthew Petroff 4 years ago
parent
commit
50ea593a09
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/js/libpannellum.js

+ 4
- 2
src/js/libpannellum.js View File

@@ -1278,8 +1278,10 @@ function Renderer(container) {
}
var node = texturesLoading[path];
delete texturesLoading[path];
node.texture = texture;
node.textureLoaded = loaded ? 2 : 1;
if (node !== undefined) {
node.texture = texture;
node.textureLoaded = loaded ? 2 : 1;
}
});
};
processNextTile = function(node) {


Loading…
Cancel
Save