Skip to content

Commit

Permalink
some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed Jun 16, 2024
1 parent 746b8a5 commit e068c99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/editor_core/src/selected.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ use bevy::{
prelude::*,
};

#[cfg(feature = "bevy_mod_outline")]
use bevy_mod_outline::{OutlinePlugin, OutlineVolume, OutlineBundle};

/// A marker for editor selected entities
#[derive(Component, Default, Clone)]
pub struct Selected;
Expand Down Expand Up @@ -57,6 +60,7 @@ fn selected_entity_wireframe_update(
del_wireframe: Query<Entity, (With<OutlineVolume>, Without<Selected>)>,
need_wireframe: Query<Entity, (Without<OutlineVolume>, With<Selected>)>,
) {

for e in del_wireframe.iter() {
cmds.entity(e).remove::<OutlineBundle>();
}
Expand Down
2 changes: 2 additions & 0 deletions crates/editor_ui/src/camera_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ use crate::{
use space_editor_tabs::prelude::*;

use crate::colors::*;
use crate::ShowEditorUi;

pub struct CameraViewTabPlugin;

impl Plugin for CameraViewTabPlugin {
#[cfg(not(tarpaulin_include))]
fn build(&self, app: &mut App) {

app.editor_tab_by_trait(EditorTabName::CameraView, CameraViewTab::default());
app.add_systems(
PreUpdate,
Expand Down
4 changes: 4 additions & 0 deletions crates/editor_ui/src/meshless_visualizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ pub struct MeshlessVisualizerPlugin;
impl Plugin for MeshlessVisualizerPlugin {
#[cfg(not(tarpaulin_include))]
fn build(&self, app: &mut App) {
use bevy_asset_loader::prelude::*;

use toast::ToastMessage;

if std::fs::metadata("assets/icons/").is_ok() {
app.add_loading_state(
LoadingState::new(EditorState::Loading)
Expand Down

0 comments on commit e068c99

Please sign in to comment.