From 8ff7e0dc5c6ed00f29abff061346273d8fccdc42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9E=97=E4=BC=9F?= Date: Tue, 28 Mar 2023 05:48:29 +0800 Subject: [PATCH] Register missing types in bevy_window (#7993) # Objective - Fixes https://github.com/bevyengine/bevy/issues/7990. ## Solution - Register needed types, verified pasted code in issue works. Do I need to register more `Option` types? --- crates/bevy_core/src/lib.rs | 3 +++ crates/bevy_window/src/lib.rs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index daf43cf86e..6e829e26c9 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -55,6 +55,8 @@ fn register_rust_types(app: &mut App) { .register_type::() .register_type::>() .register_type::>() + .register_type::>() + .register_type::>() .register_type::>() .register_type::() .register_type::(); @@ -68,6 +70,7 @@ fn register_math_types(app: &mut App) { .register_type::() .register_type::() .register_type::() + .register_type::>() .register_type::() .register_type::() .register_type::() diff --git a/crates/bevy_window/src/lib.rs b/crates/bevy_window/src/lib.rs index 0da970ab92..c08d9e4b6f 100644 --- a/crates/bevy_window/src/lib.rs +++ b/crates/bevy_window/src/lib.rs @@ -124,9 +124,13 @@ impl Plugin for WindowPlugin { // Register window descriptor and related types app.register_type::() .register_type::() + .register_type::() + .register_type::() + .register_type::() .register_type::() .register_type::() .register_type::() + .register_type::() .register_type::() .register_type::() .register_type::()