From c3c1b8c8cbb79a245643e866f1853853841215e9 Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Wed, 3 May 2023 02:24:01 -0700 Subject: [PATCH] fix sprite deps --- Cargo.toml | 2 +- crates/bevy_picking_highlight/Cargo.toml | 1 + crates/bevy_picking_highlight/src/lib.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ad44b679..57a04d4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,7 +70,7 @@ highlight = ["bevy_picking_highlight"] debug = ["bevy/bevy_text", "bevy/bevy_sprite"] backend_raycast = ["bevy_picking_raycast"] backend_rapier = ["bevy_picking_rapier", "bevy_rapier3d"] -backend_sprite = ["bevy_picking_sprite"] +backend_sprite = ["bevy_picking_sprite", "bevy_picking_highlight/sprite"] backend_bevy_ui = ["bevy_picking_ui"] backend_egui = ["bevy_picking_egui", "bevy_egui"] diff --git a/crates/bevy_picking_highlight/Cargo.toml b/crates/bevy_picking_highlight/Cargo.toml index 656349d4..e67432d0 100644 --- a/crates/bevy_picking_highlight/Cargo.toml +++ b/crates/bevy_picking_highlight/Cargo.toml @@ -23,3 +23,4 @@ bevy = { version = "0.10", default-features = false, features = [ [features] selection = ["bevy_picking_selection"] +sprite = ["bevy/bevy_sprite"] diff --git a/crates/bevy_picking_highlight/src/lib.rs b/crates/bevy_picking_highlight/src/lib.rs index 22b567ca..21e7b602 100644 --- a/crates/bevy_picking_highlight/src/lib.rs +++ b/crates/bevy_picking_highlight/src/lib.rs @@ -39,6 +39,7 @@ impl Plugin for DefaultHighlightingPlugin { }, }); + #[cfg(feature = "sprite")] app.add_plugin(HighlightPlugin:: { highlighting_default: |mut assets| GlobalHighlight { hovered: assets.add(Color::rgb(0.35, 0.35, 0.35).into()),