Gate Reflect derive behind feature flag (#19745)

# Objective

Fix https://github.com/bevyengine/bevy/issues/19733

## Solution

Gate reflect features behind `feature(bevy_reflect)`

## Tests

None
This commit is contained in:
theotherphil 2025-06-19 22:58:17 +01:00 committed by GitHub
parent d2e1f725db
commit b6bd205e8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1168,13 +1168,17 @@ pub enum MonitorSelection {
/// References an exclusive fullscreen video mode.
///
/// Used when setting [`WindowMode::Fullscreen`] on a window.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Reflect)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(
feature = "serialize",
derive(serde::Serialize, serde::Deserialize),
feature = "bevy_reflect",
derive(Reflect),
reflect(Debug, PartialEq, Clone)
)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(
all(feature = "serialize", feature = "bevy_reflect"),
reflect(Serialize, Deserialize)
)]
#[reflect(Debug, PartialEq, Clone)]
pub enum VideoModeSelection {
/// Uses the video mode that the monitor is already in.
Current,