jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.15k stars 169 forks source link

Added more types for default registration when using without `bevy_render` #204

Closed Swoorup closed 1 month ago

Swoorup commented 2 months ago

Fixes the following crash:

2024-07-07T11:24:51.915263Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::srgba::Srgba, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915282Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::linear_rgba::LinearRgba, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915284Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::hsla::Hsla, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915286Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::hsva::Hsva, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915288Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::hwba::Hwba, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915371Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::laba::Laba, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915374Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::lcha::Lcha, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915376Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::oklaba::Oklaba, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915390Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::oklcha::Oklcha, but it wasn't registered in the type registry.
2024-07-07T11:24:51.915454Z  WARN bevy_inspector_egui::inspector_options::default_options: Attempting to set default inspector options for bevy_color::xyza::Xyza, but it wasn't registered in the type registry.
thread 'main' panicked at /Users/swoorup.joshi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_reflect-0.14.0/src/type_registry.rs:260:13:
attempted to call `TypeRegistry::register_type_data` for type `core::ops::Range<f32>` with data `bevy_inspector_egui::inspector_egui_impls::InspectorEguiImpl` without registering `core::ops::Range<f32>` first
jakobhellermann commented 1 month ago

Thanks. I've released 0.25.1 with the fix