mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-13 16:25:44 +02:00
add note
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user