소스 검색

Scene: Clean up.

Mr.doob 9 년 전
부모
커밋
99b439c5a5
1개의 변경된 파일3개의 추가작업 그리고 7개의 파일을 삭제
  1. 3 7
      src/scenes/Scene.js

+ 3 - 7
src/scenes/Scene.js

@@ -5,7 +5,7 @@ import { Object3D } from '../core/Object3D';
  */
 
 function Scene () {
-	
+
 	Object3D.call( this );
 
 	this.type = 'Scene';
@@ -40,15 +40,11 @@ Scene.prototype.copy = function ( source, recursive ) {
 Scene.prototype.toJSON = function ( meta ) {
 
 	var data = Object3D.prototype.toJSON.call( this, meta );
-	
-	if ( this.fog != null ) {
-		
-		data.object.fog = this.fog.toJSON();
 
-	}
+	if ( this.fog !== null ) data.object.fog = this.fog.toJSON();
 
 	return data;
 
 };
-	
+
 export { Scene };