mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
clean
This commit is contained in:
parent
1a064ea430
commit
bf28b303d7
1 changed files with 0 additions and 16 deletions
|
|
@ -48,22 +48,6 @@ export type RoomState = {
|
|||
worldScale: number;
|
||||
};
|
||||
|
||||
export function collectReferencedDriveFileIds(roomState: RoomState) {
|
||||
const fileIds = new Set<string>();
|
||||
for (const o of roomState.installedObjects) {
|
||||
const def = getObjectDef(o.type);
|
||||
for (const schemaRecord of Object.entries(def.options.schema)) {
|
||||
if (schemaRecord[1].type === 'file') {
|
||||
const optionValue = o.options[schemaRecord[0]];
|
||||
if (optionValue != null && optionValue !== '') {
|
||||
fileIds.add(optionValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return fileIds;
|
||||
}
|
||||
|
||||
function enableObjectCollision(meshes: BABYLON.Mesh[]) {
|
||||
for (const mesh of meshes) {
|
||||
if (mesh.name.includes('__COLLISION__')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue