diff --git a/js/ProgressiveLoaderGeometry.js b/js/ProgressiveLoaderGeometry.js index 9c52b73..0710994 100644 --- a/js/ProgressiveLoaderGeometry.js +++ b/js/ProgressiveLoaderGeometry.js @@ -111,12 +111,8 @@ ProgressiveLoaderGeometry.prototype.load = function() { } ProgressiveLoaderGeometry.prototype.getCamera = function() { - if (this.camera !== null) - return [this.camera.position.x, this.camera.position.y, this.camera.position.z, - this.camera.target.x, this.camera.target.y, this.camera.target.z]; - else - return null; - + return [this.camera.position.x, this.camera.position.y, this.camera.position.z, + this.camera.target.x, this.camera.target.y, this.camera.target.z]; } ProgressiveLoaderGeometry.prototype.initIOCallbacks = function() {