Skip to content

Bug: Panic when adding a directional light #431

Description

@mxgrey

When adding a directional light to a site, or changing an existing light into directional, we immediately get a panic from bevy_pbr:

thread 'Compute Task Pool (5)' (172191) panicked at /home/grey/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_pbr-0.16.1/src/render/light.rs:1526:18:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_pbr::render::light::prepare_lights`!

I assume this is related to an implementation change in one of the bevy versions, since directional lights used to work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions