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:
parent
d2e1f725db
commit
b6bd205e8a
@ -1168,13 +1168,17 @@ pub enum MonitorSelection {
|
|||||||
/// References an exclusive fullscreen video mode.
|
/// References an exclusive fullscreen video mode.
|
||||||
///
|
///
|
||||||
/// Used when setting [`WindowMode::Fullscreen`] on a window.
|
/// Used when setting [`WindowMode::Fullscreen`] on a window.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Reflect)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "serialize",
|
feature = "bevy_reflect",
|
||||||
derive(serde::Serialize, serde::Deserialize),
|
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(Serialize, Deserialize)
|
||||||
)]
|
)]
|
||||||
#[reflect(Debug, PartialEq, Clone)]
|
|
||||||
pub enum VideoModeSelection {
|
pub enum VideoModeSelection {
|
||||||
/// Uses the video mode that the monitor is already in.
|
/// Uses the video mode that the monitor is already in.
|
||||||
Current,
|
Current,
|
||||||
|
Loading…
Reference in New Issue
Block a user