Skip to content

Commit 80094c6

Browse files
pin3-freeFreya Pinesmockersf
authored
Fixed panic in pbr example (#16976)
# Objective - Fixes #16959 - The `pbr.rs` example in the 3d section panicked because of the changes in #16638, that was not supposed to happen ## Solution - For now it's sufficient to introduce a `never_param_warn` call when adding the fallible system into the app ## Testing - Tested on my machine via `cargo r --example pbr`, it built and ran successfully --------- Co-authored-by: Freya Pines <[email protected]> Co-authored-by: François Mockers <[email protected]>
1 parent 394e82f commit 80094c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/3d/pbr.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ fn main() {
77
App::new()
88
.add_plugins(DefaultPlugins)
99
.add_systems(Startup, setup)
10-
.add_systems(Update, environment_map_load_finish)
10+
// This system relies on system parameters that are not available at start
11+
// Ignore parameter failures so that it will run when possible
12+
.add_systems(Update, environment_map_load_finish.never_param_warn())
1113
.run();
1214
}
1315

0 commit comments

Comments
 (0)