diff --git a/crates/bevy_color/Cargo.toml b/crates/bevy_color/Cargo.toml index 68e1dde3ea..c73a784a3e 100644 --- a/crates/bevy_color/Cargo.toml +++ b/crates/bevy_color/Cargo.toml @@ -13,7 +13,7 @@ bevy_math = { path = "../bevy_math", version = "0.14.0-dev" } bevy_reflect = { path = "../bevy_reflect", version = "0.14.0-dev", features = [ "bevy", ] } -bytemuck = "1" +bytemuck = { version = "1", features = ["derive"] } serde = { version = "1.0", features = ["derive"], optional = true } thiserror = "1.0" wgpu-types = { version = "0.19", default-features = false, optional = true } diff --git a/crates/bevy_dev_tools/Cargo.toml b/crates/bevy_dev_tools/Cargo.toml index 727ba84f80..4599c15ce9 100644 --- a/crates/bevy_dev_tools/Cargo.toml +++ b/crates/bevy_dev_tools/Cargo.toml @@ -30,7 +30,9 @@ bevy_reflect = { path = "../bevy_reflect", version = "0.14.0-dev" } bevy_render = { path = "../bevy_render", version = "0.14.0-dev" } bevy_time = { path = "../bevy_time", version = "0.14.0-dev" } bevy_transform = { path = "../bevy_transform", version = "0.14.0-dev" } -bevy_ui = { path = "../bevy_ui", version = "0.14.0-dev" } +bevy_ui = { path = "../bevy_ui", version = "0.14.0-dev", features = [ + "bevy_text", +] } bevy_utils = { path = "../bevy_utils", version = "0.14.0-dev" } bevy_window = { path = "../bevy_window", version = "0.14.0-dev" } bevy_text = { path = "../bevy_text", version = "0.14.0-dev" } diff --git a/crates/bevy_gizmos/src/lib.rs b/crates/bevy_gizmos/src/lib.rs index 0dc10d745f..06f9d762d8 100644 --- a/crates/bevy_gizmos/src/lib.rs +++ b/crates/bevy_gizmos/src/lib.rs @@ -38,9 +38,11 @@ pub mod circles; pub mod config; pub mod gizmos; pub mod grid; -pub mod light; pub mod primitives; +#[cfg(feature = "bevy_pbr")] +pub mod light; + #[cfg(feature = "bevy_sprite")] mod pipeline_2d; #[cfg(feature = "bevy_pbr")] @@ -56,10 +58,12 @@ pub mod prelude { GizmoLineJoint, GizmoLineStyle, }, gizmos::Gizmos, - light::{LightGizmoColor, LightGizmoConfigGroup, ShowLightGizmo}, primitives::{dim2::GizmoPrimitive2d, dim3::GizmoPrimitive3d}, AppGizmoBuilder, }; + + #[cfg(feature = "bevy_pbr")] + pub use crate::light::{LightGizmoColor, LightGizmoConfigGroup, ShowLightGizmo}; } use aabb::AabbGizmoPlugin; @@ -96,6 +100,7 @@ use config::{ GizmoMeshConfig, }; use gizmos::GizmoStorage; +#[cfg(feature = "bevy_pbr")] use light::LightGizmoPlugin; use std::{any::TypeId, mem}; @@ -131,8 +136,10 @@ impl Plugin for GizmoPlugin { .init_resource::() // We insert the Resource GizmoConfigStore into the world implicitly here if it does not exist. .init_gizmo_group::() - .add_plugins(AabbGizmoPlugin) - .add_plugins(LightGizmoPlugin); + .add_plugins(AabbGizmoPlugin); + + #[cfg(feature = "bevy_pbr")] + app.add_plugins(LightGizmoPlugin); let Some(render_app) = app.get_sub_app_mut(RenderApp) else { return; diff --git a/crates/bevy_gltf/src/loader.rs b/crates/bevy_gltf/src/loader.rs index dc4714b276..963b747488 100644 --- a/crates/bevy_gltf/src/loader.rs +++ b/crates/bevy_gltf/src/loader.rs @@ -1,4 +1,5 @@ use crate::{vertex_attributes::convert_attribute, Gltf, GltfExtras, GltfNode}; +#[cfg(feature = "bevy_animation")] use bevy_animation::{AnimationTarget, AnimationTargetId}; use bevy_asset::{ io::Reader, AssetLoadError, AssetLoader, AsyncReadExt, Handle, LoadContext, ReadAssetBytesError, @@ -44,7 +45,8 @@ use gltf::{ Material, Node, Primitive, Semantic, }; use serde::{Deserialize, Serialize}; -use smallvec::{smallvec, SmallVec}; +#[cfg(feature = "bevy_animation")] +use smallvec::SmallVec; use std::io::Error; use std::{ collections::VecDeque, @@ -1032,7 +1034,7 @@ fn load_node( // This is an animation root. Make a new animation context. animation_context = Some(AnimationContext { root: node.id(), - path: smallvec![], + path: SmallVec::new(), }); }