Update engine.ts

This commit is contained in:
syuilo 2026-04-03 18:55:50 +09:00
commit 6bf4feaef5

View file

@ -1260,6 +1260,7 @@ export class RoomEngine {
const ghost = mesh.clone('ghost', null, false)!;
ghost.metadata = { isGhost: true };
/*
const materials = new WeakMap<BABYLON.Material, BABYLON.Material>();
for (const m of ghost.getChildMeshes() as BABYLON.Mesh[]) {
@ -1293,6 +1294,7 @@ export class RoomEngine {
m.material = ghostMaterial;
}
}
*/
return ghost;
}