From 8f854e1b61d27fb058dda6289ab351a8d2f700b7 Mon Sep 17 00:00:00 2001 From: "kaosat.dev" Date: Mon, 12 Aug 2024 14:33:12 +0200 Subject: [PATCH] feat(Bevy): SaveLoadPlugin is now disabled on wasm & ExportRegistryPlugin is disabled in non dev mode based on debug_assertions --- crates/blenvy/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/blenvy/src/lib.rs b/crates/blenvy/src/lib.rs index 58cb3f9..8e80fee 100644 --- a/crates/blenvy/src/lib.rs +++ b/crates/blenvy/src/lib.rs @@ -65,9 +65,10 @@ impl Plugin for BlenvyPlugin { fn build(&self, app: &mut App) { app.add_plugins(( ComponentsFromGltfPlugin::default(), - #[cfg(not(target_arch = "wasm32"))] + #[cfg(debug_assertions)] // we only need the export registry plugin at dev time ExportRegistryPlugin::default(), BlueprintsPlugin::default(), + #[cfg(not(target_arch = "wasm32"))] // save & load is only for non wasm platforms SaveLoadPlugin::default() )) .insert_resource(BlenvyConfig {