Browse Source

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 years ago
committed by Matthew Petroff
parent
commit
383e73cdbd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/libpannellum.js

+ 1
- 1
src/js/libpannellum.js View File

@@ -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;
}



Loading…
Cancel
Save