1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 02:55:39 +02:00
This commit is contained in:
syuilo
2026-04-29 12:59:46 +09:00
parent 5de191f01a
commit 35ad1d758e
2 changed files with 10 additions and 1 deletions

View File

@@ -1152,6 +1152,15 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
if (def.hasCollisions) {
enableObjectCollision(meshes);
}
/* なんかバグる
for (const mesh of meshes) {
if (mesh.checkCollisions || SYSTEM_MESH_NAMES.some(n => mesh.name.includes(n))) continue;
// コリジョンや(ray) pickingに使わないメッシュの頂点情報はCPU側に保持しておく必要がない(通常のpickingはGPUPickerを使えるのでCPUは関与しない)
mesh.geometry.clearCachedData();
}
*/
});
const objectInstance = await def.createInstance({

View File

@@ -192,7 +192,7 @@ export class ModelManager {
private bakedMeshes: BABYLON.Mesh[] = [];
private hasTexture: boolean;
constructor(root: BABYLON.Mesh, originalMeshes: BABYLON.Mesh[], hasTexture: boolean, bakedCallback: (() => void) | null = null) {
constructor(root: BABYLON.Mesh, originalMeshes: BABYLON.Mesh[], hasTexture: boolean, bakedCallback: ((meshes: BABYLON.Mesh[]) => void) | null = null) {
this.root = root;
this.originalMeshes = originalMeshes;
this.hasTexture = hasTexture;