From f4fdbef60b9c8ac21174b8ec12bb7da1ff162a36 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Thu, 29 Jun 2023 01:33:35 +0100 Subject: [PATCH] Fix missing `bevy_text` feature cfg attribute (#8670) # Objective The `TextFlags` import in `bevy_ui::node_bundles` is missing the `#[cfg(feature = "bevy_text")]` attribute. --- crates/bevy_ui/src/node_bundles.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/node_bundles.rs b/crates/bevy_ui/src/node_bundles.rs index c42afda483..a8c82a4828 100644 --- a/crates/bevy_ui/src/node_bundles.rs +++ b/crates/bevy_ui/src/node_bundles.rs @@ -1,7 +1,9 @@ //! This module contains basic node bundles used to build UIs +#[cfg(feature = "bevy_text")] +use crate::widget::TextFlags; use crate::{ - widget::{Button, TextFlags, UiImageSize}, + widget::{Button, UiImageSize}, BackgroundColor, BorderColor, ContentSize, FocusPolicy, Interaction, Node, Style, UiImage, UiTextureAtlasImage, ZIndex, };