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/997/head
Stefan Keim 3 years ago
committed by GitHub
parent
commit
5235fdf1ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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.level = level;
this.x = x; this.x = x;
this.y = y; 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; this.parentPath = parentPath;
} }




Loading…
Cancel
Save