Add missing registration for TextEntity (#16649)

# Objective

Fix a [Blenvy](https://github.com/kaosat-dev/Blenvy) crash due to a
missing type registration for `TextEntity` (as the type is used by
`ComputedTextBlock` but wasn't itself registered.)

## Solution

- Added the missing type registration

## Testing

- N/A
This commit is contained in:
Marco Buono 2024-12-04 15:16:48 -03:00 committed by GitHub
parent 56c70f8463
commit 7dfc77b999
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,6 +118,7 @@ impl Plugin for TextPlugin {
.register_type::<TextBounds>() .register_type::<TextBounds>()
.register_type::<TextLayout>() .register_type::<TextLayout>()
.register_type::<ComputedTextBlock>() .register_type::<ComputedTextBlock>()
.register_type::<TextEntity>()
.init_asset_loader::<FontLoader>() .init_asset_loader::<FontLoader>()
.init_resource::<FontAtlasSets>() .init_resource::<FontAtlasSets>()
.init_resource::<TextPipeline>() .init_resource::<TextPipeline>()