Skip to content

Commit

Permalink
Uncomment the egui stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyDev committed Nov 13, 2024
1 parent 487ac5b commit cd92d2b
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,33 @@ use knot_search::KnotSearch;
#[cfg(feature = "bevy_asset")]
pub mod asset;

//#[cfg(feature = "editor_egui")]
//pub mod editor;
#[cfg(feature = "editor_egui")]
pub mod editor;

// #[cfg(feature = "inspector-egui")]
// mod inspector;
#[cfg(feature = "inspector-egui")]
mod inspector;

/// Registers the asset loader and editor components
// #[cfg(any(
// feature = "bevy_asset",
// feature = "editor_bevy",
// feature = "inspector-egui"
// ))]
#[cfg(feature = "bevy_asset")]
#[cfg(any(
feature = "bevy_asset",
feature = "editor_bevy",
feature = "inspector-egui"
))]
pub struct LookupCurvePlugin;

// #[cfg(any(
// feature = "bevy_asset",
// feature = "editor_bevy",
// feature = "inspector-egui"
// ))]
#[cfg(feature = "bevy_asset")]
#[cfg(any(
feature = "bevy_asset",
feature = "editor_bevy",
feature = "inspector-egui"
))]
impl bevy_app::Plugin for LookupCurvePlugin {
fn build(&self, app: &mut bevy_app::App) {
#[cfg(feature = "bevy_asset")]
app.add_plugins(asset::AssetPlugin);
// #[cfg(feature = "editor_bevy")]
// app.add_plugins(editor::EditorPlugin);
// #[cfg(feature = "inspector-egui")]
// app.add_plugins(inspector::InspectorPlugin);
#[cfg(feature = "editor_bevy")]
app.add_plugins(editor::EditorPlugin);
#[cfg(feature = "inspector-egui")]
app.add_plugins(inspector::InspectorPlugin);
}
}

Expand Down

0 comments on commit cd92d2b

Please sign in to comment.