From d381d900652f3af47c0148552c31048a8aa064a9 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Tue, 30 Apr 2024 13:05:04 +1200 Subject: [PATCH] Fix build --- 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 3b2381f0c88b07..43d767acdecbc8 100644 --- a/crates/bevy_ui/src/layout/mod.rs +++ b/crates/bevy_ui/src/layout/mod.rs @@ -185,7 +185,7 @@ pub fn ui_layout_system( ui_surface.upsert_node(&layout_context, entity, &style, measure); } } else { - ui_surface.upsert_node(entity, &Style::default(), &LayoutContext::default()); + ui_surface.upsert_node(&LayoutContext::DEFAULT, entity, &Style::default(), None); } } scale_factor_events.clear();