1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 23:25:41 +02:00
This commit is contained in:
syuilo
2026-04-11 05:54:20 +09:00
parent 5f4914e6dc
commit d775fa6360
2 changed files with 8 additions and 4 deletions

View File

@@ -178,7 +178,13 @@ function onKeydown(ev: KeyboardEvent) {
} else if (ev.code === 'Tab') {
ev.preventDefault();
ev.stopPropagation();
toggleEditMode();
if (isEditMode.value) {
engine.value.exitEditMode();
isEditMode.value = false;
} else {
engine.value.enterEditMode();
isEditMode.value = true;
}
} else if (ev.code === 'KeyZ') {
ev.preventDefault();
ev.stopPropagation();

View File

@@ -748,9 +748,7 @@ export class RoomEngine {
public async init() {
await this.loadRoomModel();
await this.loadEnvModel();
// beamLampがあるとなぜかclustered lightがエラーになる
// https://forum.babylonjs.com/t/anisotropy-with-clusteredlightcontainer-bug/63040
await Promise.all(this.roomState.installedObjects.filter(o => o.type !== 'beamLamp').map(o => this.loadObject({
await Promise.all(this.roomState.installedObjects.map(o => this.loadObject({
id: o.id,
type: o.type,
position: new BABYLON.Vector3(...o.position),