Selaa lähdekoodia

Fix bug in optimization that caused tiles to not be rendered (fixes #1204).

The optimizations introduced in 05dae19b28
contained a bug, which caused a regression.
pull/1205/head
Matthew Petroff 9 kuukautta sitten
vanhempi
commit
8f7a888c3a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      src/js/libpannellum.js

+ 1
- 1
src/js/libpannellum.js Näytä tiedosto

@@ -1074,7 +1074,7 @@ function Renderer(container, context) {
for (var i = 0; i < program.currentNodes.length; i++) { for (var i = 0; i < program.currentNodes.length; i++) {
if (node_paths[program.currentNodes[i].parentPath] === undefined) if (node_paths[program.currentNodes[i].parentPath] === undefined)
node_paths[program.currentNodes[i].parentPath] = 0 node_paths[program.currentNodes[i].parentPath] = 0
node_paths[program.currentNodes[i].parentPath] += !(program.currentNodes[i].textureLoaded > 1); // !(undefined > 1) != (undefined <= 1)
node_paths[program.currentNodes[i].parentPath] += program.currentNodes[i].textureLoaded > 1;
} }
// Draw tiles // Draw tiles
for (var i = 0; i < program.currentNodes.length; i++) { for (var i = 0; i < program.currentNodes.length; i++) {


Ladataan…
Peruuta
Tallenna