Explorar el Código

Fix bug for multres panoramas when basePath isn't defined.

tags/2.1.0
Matthew Petroff hace 10 años
padre
commit
5dcebea965
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      src/js/libpannellum.js

+ 5
- 1
src/js/libpannellum.js Ver fichero

@@ -71,7 +71,11 @@ function Renderer(container, image, imageType, video) {
console.log('Error: no WebGL support detected!');
throw {type: 'no webgl'};
}
this.image.fullpath = this.image.basePath + this.image.path;
if (this.image.basePath) {
this.image.fullpath = this.image.basePath + this.image.path;
} else {
this.image.fullpath = this.image.path;
}
this.image.invTileResolution = 1 / this.image.tileResolution;
var vertices = this.createCube();


Cargando…
Cancelar
Guardar