Skip to content

egui_flex panics if frame_time is 0 on the first frame #59

Open
@lucasmerlin

Description

@lucasmerlin

Seems to be because I unwrap_or_default the previous_state, and then always compare here:

if cfg!(debug_assertions)
            && (previous_state.frame_time == frame_time && previous_state.passes == passes)
        {
            panic!("Id clash in flex container! Id: {id:?}");
        }

The assert should also be changed to not panic but draw a debug rect with some useful text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions