@@ -281,6 +281,11 @@ void TextRender::UpdateLayout()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Update text bounds (from build vertex positions)
|
// Update text bounds (from build vertex positions)
|
||||||
|
if (_ib.Data.IsEmpty())
|
||||||
|
{
|
||||||
|
// Empty
|
||||||
|
box = BoundingBox(_transform.Translation, _transform.Translation);
|
||||||
|
}
|
||||||
_localBox = box;
|
_localBox = box;
|
||||||
BoundingBox::Transform(_localBox, _world, _box);
|
BoundingBox::Transform(_localBox, _world, _box);
|
||||||
BoundingSphere::FromBox(_box, _sphere);
|
BoundingSphere::FromBox(_box, _sphere);
|
||||||
|
|||||||
Reference in New Issue
Block a user