Skip to content

Commit

Permalink
UI and unloaded assets: don't filter out nodes with an unloaded image (
Browse files Browse the repository at this point in the history
…#11205)

# Objective

- after #10520, UI can't display images or text with a background color

## Solution

- don't filter out UI nodes with an unloaded image
  • Loading branch information
mockersf committed Jan 24, 2024
1 parent bcbab18 commit 95b9230
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/bevy_ui/src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ pub fn extract_uinode_outlines(

pub fn extract_uinodes(
mut extracted_uinodes: ResMut<ExtractedUiNodes>,
images: Extract<Res<Assets<Image>>>,
texture_atlases: Extract<Res<Assets<TextureAtlasLayout>>>,
default_ui_camera: Extract<DefaultUiCamera>,
uinode_query: Extract<
Expand Down Expand Up @@ -429,10 +428,6 @@ pub fn extract_uinodes(
}

let (image, flip_x, flip_y) = if let Some(image) = maybe_image {
// Skip loading images
if !images.contains(&image.texture) {
continue;
}
(image.texture.id(), image.flip_x, image.flip_y)
} else {
(AssetId::default(), false, false)
Expand Down

0 comments on commit 95b9230

Please sign in to comment.