Ver código fonte

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 anos atrás
committed by GitHub
pai
commit
5235fdf1ca
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/js/libpannellum.js

+ 1
- 1
src/js/libpannellum.js Ver arquivo

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



Carregando…
Cancelar
Salvar