Commit 2765ba8
authored
Fix compilation errors and warnings when running bevy_gltf with no features. (#22125)
# Objective
- #22106 accidentally added imports for AnimationClip, HashMap, and
HashSet - but these are only available/used if the bevy_animation
feature is enabled. So running `cargo t -p bevy_gltf` fails to compile
and gives warnings!
## Solution
- Guard these `use` statements on the bevy_animation feature.
## Testing
- Ran `cargo t -p bevy_gltf`.
- Ran `cargo t -p bevy_gltf --all-features`.1 parent 45955c7 commit 2765ba8
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
0 commit comments