feat(Bevy): SaveLoadPlugin is now disabled on wasm & ExportRegistryPlugin is disabled in non dev mode based on debug_assertions
This commit is contained in:
parent
013087eebe
commit
8f854e1b61
|
@ -65,9 +65,10 @@ impl Plugin for BlenvyPlugin {
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.add_plugins((
|
app.add_plugins((
|
||||||
ComponentsFromGltfPlugin::default(),
|
ComponentsFromGltfPlugin::default(),
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(debug_assertions)] // we only need the export registry plugin at dev time
|
||||||
ExportRegistryPlugin::default(),
|
ExportRegistryPlugin::default(),
|
||||||
BlueprintsPlugin::default(),
|
BlueprintsPlugin::default(),
|
||||||
|
#[cfg(not(target_arch = "wasm32"))] // save & load is only for non wasm platforms
|
||||||
SaveLoadPlugin::default()
|
SaveLoadPlugin::default()
|
||||||
))
|
))
|
||||||
.insert_resource(BlenvyConfig {
|
.insert_resource(BlenvyConfig {
|
||||||
|
|
Loading…
Reference in New Issue