Skip to content

Commit

Permalink
Add asset meta loading workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Dec 6, 2023
1 parent d1fbcee commit 8be1fe0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bevy::prelude::*;
use bevy::{asset::AssetMetaCheck, prelude::*};

use bevy_nine_slice_ui::NineSlicePlugin;
use camera::CameraPlugin;
Expand Down Expand Up @@ -47,6 +47,11 @@ mod worker;
fn main() {
let mut app = App::new();

// Workaround for Bevy attempting to load .meta files in wasm builds. On itch,
// the CDN servers HTTP 403 errors instead of 404 when files don't exists, which
// causes Bevy to break.
app.insert_resource(AssetMetaCheck::Never);

app.add_plugins(
DefaultPlugins
.set(ImagePlugin::default_nearest())
Expand Down

0 comments on commit 8be1fe0

Please sign in to comment.