瀏覽代碼

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

tags/2.1.0
Matthew Petroff 10 年之前
父節點
當前提交
5dcebea965
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      src/js/libpannellum.js

+ 5
- 1
src/js/libpannellum.js 查看文件

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


Loading…
取消
儲存