Browse Source

Clean up.

Mr.doob 9 years ago
parent
commit
892c9e24ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/cameras/PerspectiveCamera.js

+ 2 - 2
src/cameras/PerspectiveCamera.js

@@ -215,8 +215,8 @@ THREE.PerspectiveCamera.prototype.toJSON = function( meta ) {
 	data.object.focus = this.focus;
 
 	data.object.aspect = this.aspect;
-	
-	if( this.view ) data.object.view = Object.assign( {}, this.view );
+
+	if ( this.view !== null ) data.object.view = Object.assign( {}, this.view );
 
 	data.object.filmGauge = this.filmGauge;
 	data.object.filmOffset = this.filmOffset;