瀏覽代碼

Clean up.

Mr.doob 9 年之前
父節點
當前提交
892c9e24ae
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;