瀏覽代碼

Independent pitch/yap/hfov configure from xmp

pull/918/head
Andras Elso 4 年之前
父節點
當前提交
bee3b1ff01
共有 1 個文件被更改,包括 6 次插入8 次删除
  1. +6
    -8
      src/js/pannellum.js

+ 6
- 8
src/js/pannellum.js 查看文件

@@ -608,14 +608,12 @@ function parseGPanoXMP(image, url) {
config.horizonRoll = xmp.horizonRoll;
}
if (xmp.pitch != null && xmp.yaw != null && xmp.hfov != null) {
if (specifiedPhotoSphereExcludes.indexOf('pitch') < 0)
config.pitch = xmp.pitch;
if (specifiedPhotoSphereExcludes.indexOf('yaw') < 0)
config.yaw = xmp.yaw;
if (specifiedPhotoSphereExcludes.indexOf('hfov') < 0)
config.hfov = xmp.hfov;
}
if (xmp.pitch != null && specifiedPhotoSphereExcludes.indexOf('pitch') < 0)
config.pitch = xmp.pitch;
if (xmp.yaw != null && specifiedPhotoSphereExcludes.indexOf('yaw') < 0)
config.yaw = xmp.yaw;
if (xmp.hfov != null && specifiedPhotoSphereExcludes.indexOf('hfov') < 0)
config.hfov = xmp.hfov;
}
}


Loading…
取消
儲存