From e529d8c1b1aef2b8a84cd3e75a51f70843f8aa13 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Wed, 21 Jun 2023 18:24:52 +0100 Subject: [PATCH] Remove "bevy_text" feature attributes on imports used by non-text systems (#8907) # Objective The "bevy_text" feature attributes for the `PrimaryWindow`, `Window` and `TextureAtlas` imports in `bevy_ui::render` are used by non-text systems (`extract_uinode_borders` and `extract_atlas_uinodes`) and need to be removed. --- crates/bevy_ui/src/render/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/bevy_ui/src/render/mod.rs b/crates/bevy_ui/src/render/mod.rs index a293658fb1..128726ffcd 100644 --- a/crates/bevy_ui/src/render/mod.rs +++ b/crates/bevy_ui/src/render/mod.rs @@ -4,7 +4,6 @@ mod render_pass; use bevy_core_pipeline::{core_2d::Camera2d, core_3d::Camera3d}; use bevy_hierarchy::Parent; use bevy_render::{ExtractSchedule, Render}; -#[cfg(feature = "bevy_text")] use bevy_window::{PrimaryWindow, Window}; pub use pipeline::*; pub use render_pass::*; @@ -33,7 +32,6 @@ use bevy_render::{ Extract, RenderApp, RenderSet, }; use bevy_sprite::SpriteAssetEvents; -#[cfg(feature = "bevy_text")] use bevy_sprite::TextureAtlas; #[cfg(feature = "bevy_text")] use bevy_text::{PositionedGlyph, Text, TextLayoutInfo};