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