mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-04 00:44:22 +02:00
wip
This commit is contained in:
@@ -178,7 +178,13 @@ function onKeydown(ev: KeyboardEvent) {
|
|||||||
} else if (ev.code === 'Tab') {
|
} else if (ev.code === 'Tab') {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
toggleEditMode();
|
if (isEditMode.value) {
|
||||||
|
engine.value.exitEditMode();
|
||||||
|
isEditMode.value = false;
|
||||||
|
} else {
|
||||||
|
engine.value.enterEditMode();
|
||||||
|
isEditMode.value = true;
|
||||||
|
}
|
||||||
} else if (ev.code === 'KeyZ') {
|
} else if (ev.code === 'KeyZ') {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
|
|||||||
@@ -748,9 +748,7 @@ export class RoomEngine {
|
|||||||
public async init() {
|
public async init() {
|
||||||
await this.loadRoomModel();
|
await this.loadRoomModel();
|
||||||
await this.loadEnvModel();
|
await this.loadEnvModel();
|
||||||
// beamLampがあるとなぜかclustered lightがエラーになる
|
await Promise.all(this.roomState.installedObjects.map(o => this.loadObject({
|
||||||
// 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({
|
|
||||||
id: o.id,
|
id: o.id,
|
||||||
type: o.type,
|
type: o.type,
|
||||||
position: new BABYLON.Vector3(...o.position),
|
position: new BABYLON.Vector3(...o.position),
|
||||||
|
|||||||
Reference in New Issue
Block a user