Skip to content

Commit

Permalink
Added more types for default registration (#204)
Browse files Browse the repository at this point in the history
Co-authored-by: Swoorup Joshi <[email protected]>
  • Loading branch information
Swoorup and sytherax authored Jul 10, 2024
1 parent 0ab6b76 commit b0f8ad8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/bevy-inspector-egui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl bevy_app::Plugin for DefaultInspectorConfigPlugin {
return;
}

// Defensively register stuff since bevy only registers glam types used by other structs internally
// Defensively register stuff since bevy only registers glam, color types used by other structs internally
app.register_type::<bevy_math::IVec2>()
.register_type::<bevy_math::IVec3>()
.register_type::<bevy_math::IVec4>()
Expand Down Expand Up @@ -190,7 +190,9 @@ impl bevy_app::Plugin for DefaultInspectorConfigPlugin {
.register_type::<bevy_math::Mat4>()
.register_type::<bevy_math::DQuat>()
.register_type::<bevy_math::Quat>()
.register_type::<bevy_math::Rect>();
.register_type::<bevy_math::Rect>()
.register_type::<bevy_color::Color>()
.register_type::<core::ops::Range<f32>>();

let type_registry = app.world().resource::<bevy_ecs::prelude::AppTypeRegistry>();
let mut type_registry = type_registry.write();
Expand Down

0 comments on commit b0f8ad8

Please sign in to comment.