Commit 040c931 1 parent 8a106a4 commit 040c931 Copy full SHA for 040c931
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- //! Adapted from https://github.com/bevyengine/bevy/blob/main/examples/games/stepping.rs
1
+ //! Adapted from < https://github.com/bevyengine/bevy/blob/main/examples/games/stepping.rs>.
2
2
3
3
use bevy:: app:: MainScheduleOrder ;
4
4
use bevy:: ecs:: schedule:: * ;
@@ -115,7 +115,7 @@ fn is_stepping_initialized(ctx: Res<SteppingContext>) -> bool {
115
115
}
116
116
117
117
/// Returns true if a system should be ignored by stepping and always run.
118
- fn should_always_run ( system : & Box < dyn System < In = ( ) , Out = ( ) > > ) -> bool {
118
+ fn should_always_run ( system : & dyn System < In = ( ) , Out = ( ) > ) -> bool {
119
119
let name = system. name ( ) ;
120
120
name. starts_with ( "bevy" ) || name. starts_with ( "Pipe" ) || name. starts_with ( "avian2d" )
121
121
}
@@ -146,7 +146,7 @@ fn build_stepping_ui(
146
146
) ) ;
147
147
148
148
for ( node_id, system) in cq ! ( schedules. get( label) . and_then( |x| x. systems( ) . ok( ) ) ) {
149
- if should_always_run ( system) {
149
+ if should_always_run ( system. as_ref ( ) ) {
150
150
always_run. push ( ( label, node_id) ) ;
151
151
continue ;
152
152
}
You can’t perform that action at this time.
0 commit comments