@@ -124,17 +124,20 @@ impl Plugin for UiPlugin {
124
124
#[ cfg( feature = "bevy_text" ) ]
125
125
app. add_systems (
126
126
PostUpdate ,
127
- widget:: measure_text_system
128
- . before ( UiSystem :: Layout )
129
- // Potential conflict: `Assets<Image>`
130
- // In practice, they run independently since `bevy_render::camera_update_system`
131
- // will only ever observe its own render target, and `widget::measure_text_system`
132
- // will never modify a pre-existing `Image` asset.
133
- . ambiguous_with ( CameraUpdateSystem )
134
- // Potential conflict: `Assets<Image>`
135
- // Since both systems will only ever insert new [`Image`] assets,
136
- // they will never observe each other's effects.
137
- . ambiguous_with ( bevy_text:: update_text2d_layout) ,
127
+ (
128
+ widget:: measure_text_system
129
+ . before ( UiSystem :: Layout )
130
+ // Potential conflict: `Assets<Image>`
131
+ // In practice, they run independently since `bevy_render::camera_update_system`
132
+ // will only ever observe its own render target, and `widget::measure_text_system`
133
+ // will never modify a pre-existing `Image` asset.
134
+ . ambiguous_with ( CameraUpdateSystem )
135
+ // Potential conflict: `Assets<Image>`
136
+ // Since both systems will only ever insert new [`Image`] assets,
137
+ // they will never observe each other's effects.
138
+ . ambiguous_with ( bevy_text:: update_text2d_layout) ,
139
+ widget:: text_system. after ( UiSystem :: Layout ) ,
140
+ ) ,
138
141
) ;
139
142
#[ cfg( feature = "bevy_text" ) ]
140
143
app. add_plugin ( accessibility:: AccessibilityPlugin ) ;
@@ -159,7 +162,6 @@ impl Plugin for UiPlugin {
159
162
. before ( TransformSystem :: TransformPropagate ) ,
160
163
ui_stack_system. in_set ( UiSystem :: Stack ) ,
161
164
update_clipping_system. after ( TransformSystem :: TransformPropagate ) ,
162
- widget:: text_system. after ( UiSystem :: Layout ) ,
163
165
) ,
164
166
) ;
165
167
0 commit comments