Fix missing sphere bounds update for splines

This commit is contained in:
Wojtek Figat
2025-07-14 20:26:41 +02:00
parent 8ed2d6da56
commit a22b33d3bb

View File

@@ -465,6 +465,7 @@ void Spline::UpdateSpline()
Matrix world;
GetLocalToWorldMatrix(world);
BoundingBox::Transform(_localBounds, world, _box);
BoundingSphere::FromBox(_box, _sphere);
SplineUpdated();
}
@@ -564,6 +565,7 @@ void Spline::Initialize()
Matrix world;
GetLocalToWorldMatrix(world);
BoundingBox::Transform(_localBounds, world, _box);
BoundingSphere::FromBox(_box, _sphere);
}
void Spline::Serialize(SerializeStream& stream, const void* otherObj)