Browse Source

Spaces to tabs.

Mr.doob 12 years ago
parent
commit
14f5298d77
3 changed files with 16 additions and 19 deletions
  1. 1 1
      src/scenes/Fog.js
  2. 1 1
      src/scenes/FogExp2.js
  3. 14 17
      src/scenes/Scene.js

+ 1 - 1
src/scenes/Fog.js

@@ -6,7 +6,7 @@
 THREE.Fog = function ( hex, near, far ) {
 
 	this.name = '';
-  
+
 	this.color = new THREE.Color( hex );
 
 	this.near = ( near !== undefined ) ? near : 1;

+ 1 - 1
src/scenes/FogExp2.js

@@ -6,7 +6,7 @@
 THREE.FogExp2 = function ( hex, density ) {
 
 	this.name = '';
-  
+
 	this.color = new THREE.Color( hex );
 	this.density = ( density !== undefined ) ? density : 0.00025;
 

+ 14 - 17
src/scenes/Scene.js

@@ -110,21 +110,18 @@ THREE.Scene.prototype.__removeObject = function ( object ) {
 
 };
 
-THREE.Scene.prototype.clone = function (object) {
-    if ( object === undefined ) object = new THREE.Scene();
-
-    THREE.Object3D.prototype.clone.call(this, object);
-    
-    if(this.fog !== null) {
-        object.fog = this.fog.clone();
-    }
-
-    if(this.overrideMaterial !== null) {
-        object.overrideMaterial = this.overrideMaterial.clone();
-    }
-    
-    object.autoUpdate = this.autoUpdate;
-    object.matrixAutoUpdate = this.matrixAutoUpdate;
-
-    return object;
+THREE.Scene.prototype.clone = function ( object ) {
+
+	if ( object === undefined ) object = new THREE.Scene();
+
+	THREE.Object3D.prototype.clone.call(this, object);
+
+	if ( this.fog !== null ) object.fog = this.fog.clone();
+	if ( this.overrideMaterial !== null ) object.overrideMaterial = this.overrideMaterial.clone();
+
+	object.autoUpdate = this.autoUpdate;
+	object.matrixAutoUpdate = this.matrixAutoUpdate;
+
+	return object;
+
 };