Skip to content

Reflection Issue with petgraph::graph::DiGraph #17072

Open
@anlumo

Description

@anlumo

Bevy version

0.15.0

What you did

I'm working on implementing scripting support using bevy_reflect.

What went wrong

There's something weird going on with petgraph::graph::DiGraph:

OpaqueInfo {
    ty: petgraph::graph::DiGraph<bevy_animation::graph::AnimationGraphNode, (), u32>,
    generics: Generics(
        [],
    ),
    docs: None,
}

This type clearly has generic parameters, but the generics field is empty.

Additional information

The reflection is implemented using the macro impl_reflect_opaque!, maybe something there goes wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ReflectionRuntime information about typesC-BugAn unexpected or incorrect behaviorD-MacrosCode that generates Rust codeS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions