Skip to content

Commit

Permalink
Remove "bevy_text" feature attributes on imports used by non-text sys…
Browse files Browse the repository at this point in the history
…tems (#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.
  • Loading branch information
ickshonpe committed Jun 21, 2023
1 parent af4336c commit e529d8c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/bevy_ui/src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit e529d8c

Please sign in to comment.