浏览代码

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


正在加载...
取消
保存