1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 16:25:44 +02:00
This commit is contained in:
syuilo
2026-04-05 15:36:44 +09:00
parent 68eebb9d76
commit 0c808aa23d

View File

@@ -1121,13 +1121,14 @@ export class RoomEngine {
}
private highlightMeshes(meshes: BABYLON.AbstractMesh[]) {
this.clearHighlight();
this.clearHighlight(); // SelectionOutlineLayerは存在するだけでドローコールが増えるので都度dispose
this.selectionOutlineLayer = new BABYLON.SelectionOutlineLayer('outliner', this.scene);
this.selectionOutlineLayer.addSelection(meshes);
}
private clearHighlight() {
if (this.selectionOutlineLayer != null) {
// SelectionOutlineLayerは存在するだけでドローコールが増えるのでclearじゃなく都度dispose
this.selectionOutlineLayer.dispose();
this.selectionOutlineLayer = null;
}