Skip to content

Commit

Permalink
Rename to NoEditorPicking
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopap authored and jakobhellermann committed Sep 3, 2022
1 parent 7f2952e commit 54dad09
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use bevy_mod_raycast::{

pub struct EditorPickingSet;

/// Prevent the entity from being added to the `EditorPickingSet` for entity selection.
/// Prevents the entity from being selectable in the editor window.
#[derive(Component)]
pub struct IgnoreEditorRayCast;
pub struct NoEditorPicking;

pub type EditorRayCastSource = bevy_mod_raycast::RayCastSource<EditorPickingSet>;
pub type EditorRayCastMesh = bevy_mod_raycast::RayCastMesh<EditorPickingSet>;
Expand Down Expand Up @@ -48,7 +48,7 @@ fn auto_add_editor_picking_set(
(Entity, &Handle<Mesh>),
(
Without<EditorRayCastMesh>,
Without<IgnoreEditorRayCast>,
Without<NoEditorPicking>,
Without<DebugCursorMesh<EditorPickingSet>>,
),
>,
Expand Down

0 comments on commit 54dad09

Please sign in to comment.