Quellcode durchsuchen

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

tags/2.1.0
Matthew Petroff vor 10 Jahren
Ursprung
Commit
5dcebea965
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. +5
    -1
      src/js/libpannellum.js

+ 5
- 1
src/js/libpannellum.js Datei anzeigen

@@ -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();


Laden…
Abbrechen
Speichern