Skip to content

Commit

Permalink
Ignore meta files check using AssetMetaCheck (#49)
Browse files Browse the repository at this point in the history
* fix: Ignore meta files check using `AssetMetaCheck`

Fixes #48.

* chore: Bump to Bevy 0.12
  • Loading branch information
PraxTube committed Jun 12, 2024
1 parent c174e77 commit bc4b276
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ opt-level = 1
opt-level = 3

[dependencies]
bevy = "0.11"
bevy = "0.12"
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
// Feel free to delete this line.
#![allow(clippy::too_many_arguments, clippy::type_complexity)]

use bevy::asset::AssetMetaCheck;
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_systems(Startup, setup)
.run();
Expand Down

0 comments on commit bc4b276

Please sign in to comment.