mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 02:55:39 +02:00
wip
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user