From fa4452f3b8ee17d1ed6914f1dcc604e07b1cac2c Mon Sep 17 00:00:00 2001 From: David Keijser Date: Tue, 17 Oct 2023 15:29:09 +0200 Subject: [PATCH 1/2] Update bevy_egui to 0.22 --- Cargo.toml | 2 +- backends/bevy_picking_egui/Cargo.toml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f32717ee..18eb8092 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ bevy_utils = { version = "0.11", default-features = false } bevy_window = { version = "0.11", default-features = false } bevy_eventlistener = "0.5" -bevy_egui = { optional = true, version = "0.21" } +bevy_egui = { optional = true, version = "0.22" } bevy_rapier3d = { optional = true, version = "0.22" } # Local diff --git a/backends/bevy_picking_egui/Cargo.toml b/backends/bevy_picking_egui/Cargo.toml index a6dc06d0..e1304036 100644 --- a/backends/bevy_picking_egui/Cargo.toml +++ b/backends/bevy_picking_egui/Cargo.toml @@ -17,8 +17,7 @@ bevy_app = { version = "0.11", default-features = false } bevy_ecs = { version = "0.11", default-features = false } bevy_reflect = { version = "0.11", default-features = false } bevy_render = { version = "0.11", default-features = false } - -bevy_egui = "0.21" +bevy_egui = "0.22" # Local bevy_picking_core = { path = "../../crates/bevy_picking_core", version = "0.15" } bevy_picking_selection = { path = "../../crates/bevy_picking_selection", optional = true, version = "0.15" } From e91dc4c0d3ffdb9beded5594911964bf4cde4706 Mon Sep 17 00:00:00 2001 From: David Keijser Date: Tue, 17 Oct 2023 15:50:17 +0200 Subject: [PATCH 2/2] Fix cargo doc warnings --- backends/bevy_picking_raycast/src/lib.rs | 3 +-- src/lib.rs | 14 +++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/backends/bevy_picking_raycast/src/lib.rs b/backends/bevy_picking_raycast/src/lib.rs index f0c783d2..06a011e2 100644 --- a/backends/bevy_picking_raycast/src/lib.rs +++ b/backends/bevy_picking_raycast/src/lib.rs @@ -27,8 +27,7 @@ pub struct RaycastBackendSettings { } /// This unit struct is used to tag the generic ray casting types -/// [`RaycastMesh`](bevy_mod_raycast::RaycastMesh) and -/// [`RaycastSource`](bevy_mod_raycast::RaycastSource). +/// [`RaycastMesh`] and [`RaycastSource`]. #[derive(Reflect, Clone)] pub struct RaycastPickingSet; diff --git a/src/lib.rs b/src/lib.rs index dd048028..53ac6957 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -124,8 +124,8 @@ //! //! #### Backend ([`bevy_picking_core::backend`]) //! -//! A picking backend only has one job: reading [`PointerLocation`](crate::pointer::PointerLocation) -//! components, and producing [`PointerHits`](crate::backend::PointerHits). +//! A picking backend only has one job: reading [`PointerLocation`] components, and producing +//! [`PointerHits`](crate::backend::PointerHits). //! //! You will eventually need to choose which picking backend(s) you want to use. This plugin uses //! `bevy_mod_raycast` by default; it works with bevy `Mesh`es out of the box and requires no extra @@ -148,9 +148,9 @@ //! just because a pointer is over an entity, it is not necessarily hovering that entity. Although //! multiple backends may be reporting that a pointer is over an entity, the focus system needs to //! determine which one(s) are actually being hovered based on the pick depth, order of the backend, -//! and the [`Pickable`](bevy_picking_core::Pickable) state of the entity. In other words, if one -//! entity is in front of another, only the topmost one will be hovered, even if the pointer is -//! within the bounds of both entities. +//! and the [`Pickable`] state of the entity. In other words, if one entity is in front of another, +//! only the topmost one will be hovered, even if the pointer is within the bounds of both +//! entities. //! //! #### Events ([`bevy_picking_core::events`]) //! @@ -244,10 +244,10 @@ pub struct PickableBundle { pub pickable: Pickable, /// Tracks entity interaction state. pub interaction: focus::PickingInteraction, - /// Tracks entity [`PickSelection`](selection::PickSelection) state. + /// Tracks entity [`PickSelection`] state. #[cfg(feature = "selection")] pub selection: selection::PickSelection, - /// Tracks entity [`PickHighlight`](highlight::PickHighlight) state. + /// Tracks entity [`PickHighlight`] state. #[cfg(feature = "highlight")] pub highlight: highlight::PickHighlight, }