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 <freya@Freyas-MacBook-Air.local> Co-authored-by: François Mockers <francois.mockers@vleue.com>
This commit is contained in:
parent
c2f71f8bbb
commit
e6256e77cd
@ -7,7 +7,9 @@ fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_systems(Startup, setup)
|
||||
.add_systems(Update, environment_map_load_finish)
|
||||
// This system relies on system parameters that are not available at start
|
||||
// Ignore parameter failures so that it will run when possible
|
||||
.add_systems(Update, environment_map_load_finish.never_param_warn())
|
||||
.run();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user