Skip to content

Commit

Permalink
Fix AssetMetaCheck compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Jul 5, 2024
1 parent 75ff9b7 commit f09d2be
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ use bevy::prelude::*;

fn main() {
App::new()
// Wasm builds will check for meta files (that don't exist) if this isn't set.
// This causes errors and even panics on web build on itch.
// See https://github.com/bevyengine/bevy_github_ci_template/issues/48.
.insert_resource(AssetMetaCheck::Never)
.add_plugins(DefaultPlugins)
.add_plugins(DefaultPlugins.set(AssetPlugin {
// Wasm builds will check for meta files (that don't exist) if this isn't set.
// This causes errors and even panics on web build on itch.
// See https://github.com/bevyengine/bevy_github_ci_template/issues/48.
meta_check: AssetMetaCheck::Never,
..default()
}))
.add_systems(Startup, setup)
.run();
}
Expand Down

0 comments on commit f09d2be

Please sign in to comment.