Przeglądaj źródła

add %l0 placeholder for 0 based level numbering in MultiresNode

I'm using an 3rd party tool to produce the tiles for the faces - it offers 4 patterns for file and folder hirarchy/naming but all start at level 0.
This is an easy fix that may come handy for others as well.
pull/1015/head
Stefan Keim 3 lat temu
committed by Matthew Petroff
rodzic
commit
383e73cdbd
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/js/libpannellum.js

+ 1
- 1
src/js/libpannellum.js Wyświetl plik

@@ -885,7 +885,7 @@ function Renderer(container) {
this.level = level;
this.x = x;
this.y = y;
this.path = path.replace('%s',side).replace('%l',level).replace('%x',x).replace('%y',y);
this.path = path.replace('%s',side).replace('%l0',level-1).replace('%l',level).replace('%x',x).replace('%y',y);
this.parentPath = parentPath;
}



Ładowanie…
Anuluj
Zapisz