From c1317b1dfbe8e62fc998225453c81bba19289aee Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sun, 6 Dec 2015 14:47:46 -0500 Subject: [PATCH] Fix bug in handling of XMP pitch and roll data. --- src/js/libpannellum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/libpannellum.js b/src/js/libpannellum.js index 78a3275..daeaa5b 100644 --- a/src/js/libpannellum.js +++ b/src/js/libpannellum.js @@ -219,7 +219,7 @@ function Renderer(container, image, imageType, dynamic) { } // Store horizon pitch and roll if applicable - if (image.horizonPitch && image.horizonRoll) { + if (image.horizonPitch !== undefined && image.horizonRoll !== undefined) { pose = [image.horizonPitch, image.horizonRoll]; }