From 3897b044fe9ae0c81b829750dda6d5d002adcd1a Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Wed, 22 Apr 2026 22:39:42 +0900 Subject: [PATCH] Update previewEngine.ts --- packages/frontend/src/world/room/previewEngine.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/frontend/src/world/room/previewEngine.ts b/packages/frontend/src/world/room/previewEngine.ts index f87e279b04..917f81e345 100644 --- a/packages/frontend/src/world/room/previewEngine.ts +++ b/packages/frontend/src/world/room/previewEngine.ts @@ -217,7 +217,6 @@ export class RoomObjectPreviewEngine { }, 10); } - // TODO: RoomEngineのものとほぼ同じだからいい感じに共通化 private async loadObject(args: { type: string; options: any; @@ -230,20 +229,6 @@ export class RoomObjectPreviewEngine { const filePath = def.path != null ? `/client-assets/room/objects/${def.path}.glb` : `/client-assets/room/objects/${camelToKebab(args.type)}/${camelToKebab(args.type)}.glb`; const loaderResult = await BABYLON.LoadAssetContainerAsync(filePath, this.scene); - // 不要なUVを掃除 - if (!def.hasTexture) { - for (const m of loaderResult.meshes) { - if (m.geometry != null) { - m.geometry.removeVerticesData(BABYLON.VertexBuffer.UVKind); - m.geometry.removeVerticesData(BABYLON.VertexBuffer.UV2Kind); - m.geometry.removeVerticesData(BABYLON.VertexBuffer.UV3Kind); - m.geometry.removeVerticesData(BABYLON.VertexBuffer.UV4Kind); - m.geometry.removeVerticesData(BABYLON.VertexBuffer.UV5Kind); - m.geometry.removeVerticesData(BABYLON.VertexBuffer.UV6Kind); - } - } - } - // babylonによって自動で追加される右手系変換用ノード const subRoot = loaderResult.meshes[0]; subRoot.scaling = subRoot.scaling.scale(WORLD_SCALE);// cmをmに