We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb6de2 commit ba16e0dCopy full SHA for ba16e0d
src/core/Object3D.js
@@ -392,20 +392,7 @@ class Object3D extends EventDispatcher {
392
393
clear() {
394
395
- for ( let i = 0; i < this.children.length; i ++ ) {
396
-
397
- const object = this.children[ i ];
398
399
- object.parent = null;
400
401
- object.dispatchEvent( _removedEvent );
402
403
- }
404
405
- this.children.length = 0;
406
407
- return this;
408
+ return this.remove( ... this.children );
409
410
}
411
0 commit comments