Update engine.ts

This commit is contained in:
syuilo 2026-04-06 15:35:21 +09:00
commit a54a8a10ad

View file

@ -1129,6 +1129,7 @@ export class RoomEngine {
private clearHighlight() {
if (this.selectionOutlineLayer != null) {
// SelectionOutlineLayerは存在するだけでドローコールが増えるのでclearじゃなく都度dispose
// あとこれ https://forum.babylonjs.com/t/selectionoutlinelayer-error-when-webgpus-compatibilitymode-is-false/63067
this.selectionOutlineLayer.dispose();
this.selectionOutlineLayer = null;
}