mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-04 12:24:10 +02:00
Update engine.ts
This commit is contained in:
@@ -1260,6 +1260,7 @@ export class RoomEngine {
|
|||||||
const ghost = mesh.clone('ghost', null, false)!;
|
const ghost = mesh.clone('ghost', null, false)!;
|
||||||
ghost.metadata = { isGhost: true };
|
ghost.metadata = { isGhost: true };
|
||||||
|
|
||||||
|
/* なんかエラーになる
|
||||||
const materials = new WeakMap<BABYLON.Material, BABYLON.Material>();
|
const materials = new WeakMap<BABYLON.Material, BABYLON.Material>();
|
||||||
|
|
||||||
for (const m of ghost.getChildMeshes() as BABYLON.Mesh[]) {
|
for (const m of ghost.getChildMeshes() as BABYLON.Mesh[]) {
|
||||||
@@ -1293,6 +1294,7 @@ export class RoomEngine {
|
|||||||
m.material = ghostMaterial;
|
m.material = ghostMaterial;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return ghost;
|
return ghost;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user