Update engine.ts

This commit is contained in:
syuilo
2026-03-03 19:30:50 +09:00
parent c22345e3e0
commit 7b04d5d434

View File

@@ -861,6 +861,8 @@ export class RoomEngine {
const meshUpdated = (meshes: BABYLON.Mesh[]) => { const meshUpdated = (meshes: BABYLON.Mesh[]) => {
for (const m of meshes) { for (const m of meshes) {
const mesh = m; const mesh = m;
// シェイプキー(morph)を考慮してbounding boxを更新するために必要
mesh.refreshBoundingInfo({ applyMorph: true }); mesh.refreshBoundingInfo({ applyMorph: true });
//mesh.showBoundingBox = _DEV_; //mesh.showBoundingBox = _DEV_;