From 4045b910914305bb316b8089d367d7931e9a9b4a Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Sun, 16 Feb 2025 20:33:17 -0700 Subject: [PATCH] Fix `dds` feature enabling `bevy_gltf` (#17888) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Objective Fixes #17022 ## Solution Only enable `bevy_gltf/dds` if `bevy_gltf` is already enabled. ## Testing Tested with empty project ```toml [dependencies] bevy = { version = "0.16.0-dev", path = "../bevy", default-features = false, features = [ "dds", ] } ``` ### Before ```  cargo tree --depth 1 -i bevy_gltf bevy_gltf v0.16.0-dev (/Users/robparrett/src/bevy/crates/bevy_gltf) └── bevy_internal v0.16.0-dev (/Users/robparrett/src/bevy/crates/bevy_internal) ``` ### After ```  cargo tree --depth 1 -i bevy_gltf warning: nothing to print. To find dependencies that require specific target platforms, try to use option `--target all` first, and then narrow your search scope accordingly. ``` --- crates/bevy_internal/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_internal/Cargo.toml b/crates/bevy_internal/Cargo.toml index 1672b12e974e4..0ac089a94c6f9 100644 --- a/crates/bevy_internal/Cargo.toml +++ b/crates/bevy_internal/Cargo.toml @@ -33,7 +33,7 @@ dds = [ "bevy_image/dds", "bevy_render/dds", "bevy_core_pipeline/dds", - "bevy_gltf/dds", + "bevy_gltf?/dds", ] exr = ["bevy_image/exr", "bevy_render/exr"] hdr = ["bevy_image/hdr", "bevy_render/hdr"]