소스 검색

Editor: Simplified fog handling

Mr.doob 4 년 전
부모
커밋
64c69901c0
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      editor/js/Editor.js

+ 1 - 2
editor/js/Editor.js

@@ -132,8 +132,7 @@ Editor.prototype = {
 		this.scene.name = scene.name;
 
 		this.scene.background = scene.background;
-
-		if ( scene.fog !== null ) this.scene.fog = scene.fog.clone();
+		this.scene.fog = scene.fog;
 
 		this.scene.userData = JSON.parse( JSON.stringify( scene.userData ) );