From bc4b276dc11502c4afa3f42baed5f60ff2182355 Mon Sep 17 00:00:00 2001 From: Rancic <92249895+PraxTube@users.noreply.github.com> Date: Wed, 12 Jun 2024 23:27:57 +0200 Subject: [PATCH] Ignore meta files check using `AssetMetaCheck` (#49) * fix: Ignore meta files check using `AssetMetaCheck` Fixes #48. * chore: Bump to Bevy 0.12 --- Cargo.toml | 2 +- src/main.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d52645d..3fbf483 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,4 +16,4 @@ opt-level = 1 opt-level = 3 [dependencies] -bevy = "0.11" +bevy = "0.12" diff --git a/src/main.rs b/src/main.rs index df89774..668b208 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();