Skip to content

Commit

Permalink
Add Cascades to the type registry, fixing lights in glTF. (#12989)
Browse files Browse the repository at this point in the history
glTF files that contain lights currently panic when loaded into Bevy,
because Bevy tries to reflect on `Cascades`, which accidentally wasn't
registered.
  • Loading branch information
pcwalton authored Apr 16, 2024
1 parent 2532447 commit 6003a31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_pbr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>()
Expand Down

0 comments on commit 6003a31

Please sign in to comment.