Skip to content

Commit

Permalink
Fix multi-span text2d.
Browse files Browse the repository at this point in the history
  • Loading branch information
ickshonpe committed Jan 11, 2025
1 parent e214cdb commit 10dfec4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/bevy_text/src/text2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,12 @@ pub fn extract_text2d_sprite(
.unwrap_or(true)
{
extracted_sprites.sprites.insert(
original_entity.into(),
if current_span == 0 {
original_entity
} else {
commands.spawn(TemporaryRenderEntity).id()
}
.into(),
ExtractedSprite {
transform,
color,
Expand Down

0 comments on commit 10dfec4

Please sign in to comment.