bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.46k stars 3.6k forks source link

Skip empty spans when updating text buffers #16524

Closed cart closed 2 days ago

cart commented 2 days ago

Objective

Fixes #16521

Solution

If an empty span is encountered (such as the default Text value), we skip it entirely when updating buffers. This prevents unnecessarily bailing when the font doesn't exist (ex: when the default font is disabled)