Add Cascades to the type registry, fixing lights in glTF. (#12989)

glTF files that contain lights currently panic when loaded into Bevy,
because Bevy tries to reflect on `Cascades`, which accidentally wasn't
registered.
This commit is contained in:
Patrick Walton 2024-04-16 00:16:45 -05:00 committed by GitHub
parent 2532447dcb
commit 6003a317b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -269,6 +269,7 @@ impl Plugin for PbrPlugin {
app.register_asset_reflect::<StandardMaterial>()
.register_type::<AmbientLight>()
.register_type::<CascadeShadowConfig>()
.register_type::<Cascades>()
.register_type::<CascadesVisibleEntities>()
.register_type::<ClusterConfig>()
.register_type::<CubemapVisibleEntities>()