Skip to content

Commit

Permalink
Update to use new QueryFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisCode committed Nov 11, 2020
1 parent 65ffc08 commit bfb37d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ui/src/widget/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ pub fn text_system(
mut font_atlas_set_storage: ResMut<Assets<FontAtlasSet>>,
mut text_pipeline: ResMut<DefaultTextPipeline>,
mut text_queries: QuerySet<(
Query<(Entity, Or<(Changed<Text>, Changed<Style>)>)>,
Query<Entity, Or<(Changed<Text>, Changed<Style>)>>,
Query<(&Text, &Style, &mut CalculatedSize)>,
)>,
) {
// Adds all entities where the text or the style has changed to the local queue
for (entity, (_text, _style)) in text_queries.q0_mut().iter_mut() {
for entity in text_queries.q0_mut().iter_mut() {
queued_text.entities.push(entity);
}

Expand Down

0 comments on commit bfb37d8

Please sign in to comment.