Browse Source

Independent pitch/yap/hfov configure from xmp

pull/918/head
Andras Elso 4 years ago
parent
commit
bee3b1ff01
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      src/js/pannellum.js

+ 6
- 8
src/js/pannellum.js View File

@@ -608,14 +608,12 @@ function parseGPanoXMP(image, url) {
config.horizonRoll = xmp.horizonRoll; 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…
Cancel
Save