提交 3766a77c 编写于 作者: M MiiBond 提交者: Mr.doob

Making Object3D.remove() also remove virtual lights when removing cascade light

上级 df590909
......@@ -79,6 +79,12 @@ THREE.Scene.prototype.__removeObject = function ( object ) {
}
if ( object.shadowCascadeArray ) {
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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册