From 13bed592a55261104e043d8e1f257da533450389 Mon Sep 17 00:00:00 2001 From: Ickshonpe Date: Tue, 14 Feb 2023 09:07:22 +0000 Subject: [PATCH] changes: The `text_system` has been changed so it recomputes the text layout of a Text Node entity whenever its Node component is changed. This ensures that any change in the size of a UI Node will cause any text it contains to be recomputed. --- crates/bevy_ui/src/widget/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ui/src/widget/text.rs b/crates/bevy_ui/src/widget/text.rs index 96a7cc453bf0a..a4464701fdcee 100644 --- a/crates/bevy_ui/src/widget/text.rs +++ b/crates/bevy_ui/src/widget/text.rs @@ -1,4 +1,4 @@ -use crate::{CalculatedSize, Style, UiScale, Val}; +use crate::{CalculatedSize, Node, Style, UiScale, Val}; use bevy_asset::Assets; use bevy_ecs::{ entity::Entity, @@ -54,7 +54,7 @@ pub fn text_system( mut font_atlas_set_storage: ResMut>, mut text_pipeline: ResMut, mut text_queries: ParamSet<( - Query, Changed