Skip to content

Commit 3eb0a0b

Browse files
committed
add remove in copperMScene
1 parent 1102a6b commit 3eb0a0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Scene/copperMScene.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export default class copperMScene extends commonScene {
7878
return;
7979
}
8080
},
81+
remove(id) {
82+
if (this.cache[id]) delete this.cache[id];
83+
},
8184
};
8285
this.init();
8386
}
@@ -321,6 +324,9 @@ export default class copperMScene extends commonScene {
321324

322325
this.setViewPoint(this.camera as THREE.PerspectiveCamera);
323326
}
327+
removePreRenderCallbackFunction(id: number) {
328+
this.preRenderCallbackFunctions.remove(id);
329+
}
324330

325331
resetView() {
326332
this.controls.reset();

0 commit comments

Comments
 (0)