Fix regression in dynamic mesh bounds and triangles setup after refactor

This commit is contained in:
Wojtek Figat
2025-01-20 23:48:25 +01:00
parent d4a5c76c82
commit eaf48bb176
2 changed files with 6 additions and 1 deletions

View File

@@ -311,6 +311,11 @@ void MeshBase::SetBounds(const BoundingBox& box)
_box = box;
BoundingSphere::FromBox(box, _sphere);
_hasBounds = true;
if (_model && _model->IsLoaded())
{
// Send event (actors using this model can update bounds, etc.)
_model->onLoaded();
}
}
void MeshBase::SetBounds(const BoundingBox& box, const BoundingSphere& sphere)