File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,10 @@ impl ImagePlugin {
77
77
impl Plugin for ImagePlugin {
78
78
fn build ( & self , app : & mut App ) {
79
79
#[ cfg( feature = "exr" ) ]
80
- {
81
- app. init_asset_loader :: < crate :: ExrTextureLoader > ( ) ;
82
- }
80
+ app. init_asset_loader :: < crate :: ExrTextureLoader > ( ) ;
83
81
84
82
#[ cfg( feature = "hdr" ) ]
85
- {
86
- app. init_asset_loader :: < crate :: HdrTextureLoader > ( ) ;
87
- }
83
+ app. init_asset_loader :: < crate :: HdrTextureLoader > ( ) ;
88
84
89
85
app. init_asset :: < Image > ( ) ;
90
86
#[ cfg( feature = "bevy_reflect" ) ]
Original file line number Diff line number Diff line change @@ -402,16 +402,16 @@ mod tests {
402
402
app. add_systems (
403
403
PostUpdate ,
404
404
(
405
+ // UI is driven by calculated camera target info, so we need to run the camera system first
406
+ bevy_render:: camera:: camera_system,
405
407
update_ui_context_system,
406
408
ApplyDeferred ,
407
409
ui_layout_system,
408
410
mark_dirty_trees,
409
411
sync_simple_transforms,
410
412
propagate_parent_transforms,
411
413
)
412
- . chain ( )
413
- // UI is driven by calculated camera target info, so we need to run the camera system first
414
- . after ( bevy_camera:: CameraUpdateSystems ) ,
414
+ . chain ( ) ,
415
415
) ;
416
416
417
417
app. configure_sets (
@@ -1064,10 +1064,14 @@ mod tests {
1064
1064
1065
1065
app. add_systems (
1066
1066
PostUpdate ,
1067
- ( update_ui_context_system, ApplyDeferred , ui_layout_system)
1068
- . chain ( )
1067
+ (
1069
1068
// UI is driven by calculated camera target info, so we need to run the camera system first
1070
- . after ( bevy_camera:: CameraUpdateSystems ) ,
1069
+ bevy_render:: camera:: camera_system,
1070
+ update_ui_context_system,
1071
+ ApplyDeferred ,
1072
+ ui_layout_system,
1073
+ )
1074
+ . chain ( ) ,
1071
1075
) ;
1072
1076
1073
1077
app. add_plugins ( HierarchyPropagatePlugin :: < ComputedNodeTarget > :: new (
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ mod tests {
225
225
226
226
app. add_systems (
227
227
bevy_app:: Update ,
228
- update_ui_context_system . after ( bevy_camera :: CameraUpdateSystems ) ,
228
+ ( bevy_render :: camera :: camera_system , update_ui_context_system ) . chain ( ) ,
229
229
) ;
230
230
231
231
app
You can’t perform that action at this time.
0 commit comments