mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 09:52:34 +01:00
13 lines
No EOL
222 B
JavaScript
13 lines
No EOL
222 B
JavaScript
import {Mesh} from 'three';
|
|
|
|
export class DisposableMesh extends Mesh {
|
|
|
|
constructor(geometry, material) {
|
|
super(geometry, material);
|
|
}
|
|
|
|
dispose() {
|
|
this.geometry.dispose();
|
|
this.material.dispose();
|
|
}
|
|
} |