1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 04:05:34 +02:00

Update engine.ts

This commit is contained in:
syuilo
2026-04-05 13:12:23 +09:00
parent 93f62f6054
commit 614e8a7254

View File

@@ -263,6 +263,7 @@ class ModelManager {
}
}
merged.freezeWorldMatrix();
merged.metadata = { ...this.root.metadata };
this.bakedMeshes = [merged];
this.bakedCallback?.([...this.bakedMeshes, ...excludeMeshes]);
@@ -1126,6 +1127,10 @@ export class RoomEngine {
const soMesh = this.objectEntities.get(soid)!.rootMesh;
setStickyParentRecursively(soMesh);
soMesh.setParent(mesh);
soMesh.unfreezeWorldMatrix();
for (const m of soMesh.getChildMeshes()) {
m.unfreezeWorldMatrix();
}
}
};
setStickyParentRecursively(selectedObject);