mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-12-22 15:44:11 +00:00
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) {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user