* Removes this 3D object from its current parent. * * @fires Object3D#removed * @fires Object3D#childremoved * @return {Object3D} A reference to this instance.
()
| 836 | * @return {Object3D} A reference to this instance. |
| 837 | */ |
| 838 | removeFromParent() { |
| 839 | |
| 840 | const parent = this.parent; |
| 841 | |
| 842 | if ( parent !== null ) { |
| 843 | |
| 844 | parent.remove( this ); |
| 845 | |
| 846 | } |
| 847 | |
| 848 | return this; |
| 849 | |
| 850 | } |
| 851 | |
| 852 | /** |
| 853 | * Removes all child objects. |
no test coverage detected