Quellcode durchsuchen

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 vor 4 Jahren
Ursprung
Commit
50ea593a09
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. +4
    -2
      src/js/libpannellum.js

+ 4
- 2
src/js/libpannellum.js Datei anzeigen

@@ -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) {


Laden…
Abbrechen
Speichern