소스 검색

CSM.remove() removes the targets, too (#24658)

Yoshiki Ohshima 3 년 전
부모
커밋
4de773d68a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      examples/jsm/csm/CSM.js

+ 1 - 0
examples/jsm/csm/CSM.js

@@ -343,6 +343,7 @@ export class CSM {
 
 		for ( let i = 0; i < this.lights.length; i ++ ) {
 
+			this.parent.remove( this.lights[ i ].target );
 			this.parent.remove( this.lights[ i ] );
 
 		}