From 0b4c01d3e0f1e2233b243b0621dddeaeef98e3de Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 18 Jun 2015 16:36:16 +0200 Subject: [PATCH] Clean --- js/ProgressiveLoaderGeometry.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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() {