From 2a52bb6ac2c6c08b8c82769c5ff5d856d38e58d8 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Mon, 18 Sep 2023 08:57:34 +0100 Subject: [PATCH] Replaced use of deprecated method --- crates/bevy_ui/src/layout/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/layout/mod.rs b/crates/bevy_ui/src/layout/mod.rs index 40cdc0ccaa64b..80cd0c9f86092 100644 --- a/crates/bevy_ui/src/layout/mod.rs +++ b/crates/bevy_ui/src/layout/mod.rs @@ -275,7 +275,7 @@ pub fn ui_layout_system( } // When a `ContentSize` component is removed from an entity, we need to remove the measure from the corresponding taffy node. - for entity in removed_content_sizes.iter() { + for entity in removed_content_sizes.read() { ui_surface.try_remove_measure(entity); }