feat(Bevy): SaveLoadPlugin is now disabled on wasm & ExportRegistryPlugin is disabled in non dev mode based on debug_assertions

This commit is contained in:
kaosat.dev 2024-08-12 14:33:12 +02:00
parent 013087eebe
commit 8f854e1b61
1 changed files with 2 additions and 1 deletions

View File

@ -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 {