Преглед на файлове

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