Browse Source

Fix bug in last commit.

pull/302/merge
Matthew Petroff 8 years ago
parent
commit
a0a5ee0624
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/libpannellum.js

+ 1
- 1
src/js/libpannellum.js View File

@@ -66,7 +66,7 @@ function Renderer(container) {
if (typeof _imageType === undefined) if (typeof _imageType === undefined)
_imageType = 'equirectangular'; _imageType = 'equirectangular';


if (_imageType != 'equirectangular' || _imageType != 'cubemap' ||
if (_imageType != 'equirectangular' && _imageType != 'cubemap' &&
_imageType != 'multires') { _imageType != 'multires') {
console.log('Error: invalid image type specified!'); console.log('Error: invalid image type specified!');
throw {type: 'config error'}; throw {type: 'config error'};


Loading…
Cancel
Save