mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Fix native build
This commit is contained in:
+14
-4
@@ -15,7 +15,9 @@ mod debug;
|
||||
mod design_system;
|
||||
mod hierarchy;
|
||||
mod input;
|
||||
#[cfg(feature = "wasm")]
|
||||
mod inspector;
|
||||
|
||||
mod interaction;
|
||||
pub mod math;
|
||||
mod mixamo;
|
||||
@@ -33,7 +35,6 @@ pub use crate::{
|
||||
camera_controller::CameraControllerPlugin,
|
||||
debug::DebugPlugin,
|
||||
input::StudioInputPlugin,
|
||||
inspector::InspectorPlugin,
|
||||
interaction::InteractionPlugin,
|
||||
math::InterpolationPlugin,
|
||||
mixamo::{MixamoImportEvent, MixamoPlugin},
|
||||
@@ -67,10 +68,11 @@ pub(crate) fn is_editor(r_studio_mode: Res<StudioMode>) -> bool {
|
||||
struct CommonPlugins;
|
||||
impl PluginGroup for CommonPlugins {
|
||||
fn build(self) -> PluginGroupBuilder {
|
||||
PluginGroupBuilder::start::<Self>()
|
||||
let group = PluginGroupBuilder::start::<Self>()
|
||||
.add(CameraControllerPlugin)
|
||||
.add(DebugPlugin)
|
||||
.add(InspectorPlugin)
|
||||
|
||||
|
||||
.add(InterpolationPlugin)
|
||||
.add(ScenePlugin)
|
||||
.add(SkyboxPlugin)
|
||||
@@ -78,7 +80,15 @@ impl PluginGroup for CommonPlugins {
|
||||
.add(UiLayerPlugin)
|
||||
.add(WorldGridPlugin)
|
||||
.add(PersistancePlugin)
|
||||
.add(AnimPlugin)
|
||||
.add(AnimPlugin);
|
||||
|
||||
#[cfg(feature = "wasm")]
|
||||
let group = {
|
||||
group
|
||||
.add(inspector::InspectorPlugin)
|
||||
};
|
||||
|
||||
group
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@ use bevy::prelude::*;
|
||||
use self::fps::FpsCounterPlugin;
|
||||
|
||||
mod fps;
|
||||
#[cfg(feature = "wasm")]
|
||||
mod inspector;
|
||||
#[cfg(feature = "wasm")]
|
||||
mod utils;
|
||||
|
||||
pub struct UiLayerPlugin;
|
||||
@@ -11,6 +13,8 @@ pub struct UiLayerPlugin;
|
||||
impl Plugin for UiLayerPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_plugins(FpsCounterPlugin);
|
||||
|
||||
#[cfg(feature = "wasm")]
|
||||
app.add_plugins(inspector::InspectorPlugin);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user