提交 76b3cc3f 编写于 作者: M Mr.doob

Code clean up.

上级 3766a77c
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册