Browse Source

Code clean up.

Mr.doob 12 years ago
parent
commit
76b3cc3fd8
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/scenes/Scene.js

+ 6 - 2
src/scenes/Scene.js

@@ -80,16 +80,20 @@ THREE.Scene.prototype.__removeObject = function ( object ) {
 		}
 
 		if ( object.shadowCascadeArray ) {
-			for ( var x = 0; x < object.shadowCascadeArray.length; x++ ) {
+
+			for ( var x = 0; x < object.shadowCascadeArray.length; x ++ ) {
+
 				this.__removeObject( object.shadowCascadeArray[ x ] );
+
 			}
+
 		}
 
 	} else if ( !( object instanceof THREE.Camera ) ) {
 
 		var i = this.__objects.indexOf( object );
 
-		if( i !== -1 ) {
+		if ( i !== -1 ) {
 
 			this.__objects.splice( i, 1 );
 			this.__objectsRemoved.push( object );