Преглед изворни кода

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 година
committed by GitHub
родитељ
комит
5235fdf1ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      src/js/libpannellum.js

+ 1
- 1
src/js/libpannellum.js Прегледај датотеку

@@ -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…
Откажи
Сачувај