1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 00:35:25 +02:00
This commit is contained in:
syuilo
2026-05-01 11:54:52 +09:00
parent 7df4b729e9
commit d1eda166de
3 changed files with 17 additions and 6 deletions

View File

@@ -94,7 +94,7 @@ import { ensureSignin } from '@/i';
import MkButton from '@/components/MkButton.vue';
import * as os from '@/os.js';
import { RoomController } from '@/world/room/controller.js';
import { cm, getHex, getRgb } from '@/world/utility.js';
import { cm, getHex, getRgb, WORLD_SCALE } from '@/world/utility.js';
import { deepClone } from '@/utility/clone.js';
import { GRAPHICS_QUALITY_HIGH, GRAPHICS_QUALITY_LOW, GRAPHICS_QUALITY_MEDIUM } from '@/world/room/engine.js';
import { deviceKind } from '@/utility/device-kind.js';
@@ -224,8 +224,14 @@ const data = localStorage.getItem('roomData') != null ? JSON.parse(localStorage.
},
roomLightColor: [1.0, 0.9, 0.8],
installedObjects: [],
worldScale: WORLD_SCALE,
};
// 後方互換性のため
if (data.worldScale == null) {
data.worldScale = 1;
}
console.log('installedObjects:', data.installedObjects.length);
let latestData = deepClone(data);
@@ -270,6 +276,7 @@ onMounted(async () => {
window.addEventListener('resize', resize);
watch(controller.roomState, () => {
controller.roomState.value.worldScale = WORLD_SCALE;
isModified.value = true;
});