未验证 提交 333f5bd8 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #17796 from viniciuslrangel/css_remove_fix

CSS3DRenderer: Ensure child DOM elements are correctly removed.
......@@ -13,11 +13,15 @@ THREE.CSS3DObject = function ( element ) {
this.addEventListener( 'removed', function () {
if ( this.element.parentNode !== null ) {
this.traverse( function( object ) {
this.element.parentNode.removeChild( this.element );
if ( object.element instanceof Element && object.element.parentNode !== null ) {
}
object.element.parentNode.removeChild( object.element );
}
} );
} );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册