Ver código fonte

Independent pitch/yap/hfov configure from xmp

pull/918/head
Andras Elso 4 anos atrás
pai
commit
bee3b1ff01
1 arquivos alterados com 6 adições e 8 exclusões
  1. +6
    -8
      src/js/pannellum.js

+ 6
- 8
src/js/pannellum.js Ver arquivo

@@ -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;
}
}


Carregando…
Cancelar
Salvar