Update room.core.vue

This commit is contained in:
syuilo 2026-05-23 18:14:21 +09:00
commit 32bdb77e97

View file

@ -229,6 +229,16 @@ const joyStickStartPos = ref<{ x: number; y: number } | null>(null);
let latestSavedRoomState = deepClone(props.room.def) as unknown as RoomState;
let initialRoomState = latestSavedRoomState;
//
for (const obj of latestSavedRoomState.installedObjects) {
if (obj.options.customPicture != null) {
obj.options.image = {
type: null,
};
delete obj.options.customPicture;
}
}
let latestSavedAttachments = {
files: deepClone(props.room.attachedFiles),
} as RoomAttachments;