浏览代码

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 ) );