add cleanup of geometries and textures
This commit is contained in:
parent
3fd79573e6
commit
c48a3fb147
4 changed files with 42 additions and 7 deletions
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
destroy() {
|
||||
this._view.remove(this.view);
|
||||
THREE.dispose(this.view);
|
||||
this.view = this.slices = this.meshes = null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue