Skip to content

Conversation

@andriyDev
Copy link
Contributor

Objective

  • Fix cargo b -p bevy_gltf --all-features

Solution

  • Delete an unused symbol with the same name.
  • Add the bevy_mesh feature on bevy_animation in bevy_gltf, so the correct WeightsCurve is chosen.

Testing

  • CI, and running with --all-features.

@andriyDev andriyDev added C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward A-glTF Related to the glTF 3D scene/model format labels Nov 9, 2025
@andriyDev andriyDev added this to the 0.18 milestone Nov 9, 2025
@andriyDev
Copy link
Contributor Author

I think this was accidentally broken in #20742.

@alice-i-cecile alice-i-cecile requested a review from atlv24 November 9, 2025 21:56
Copy link
Contributor

@greeble-dev greeble-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Although I think the real culprit was #15434 - that added the unused gltf_curves::WeightsCurve, and did a glob import of gltf_curves::*. Maybe this PR should avoid the glob just to be safe? Or I can make a follow up PR.

use bevy_animation::{
animated_field, animation_curves::*, gltf_curves::*, VariableCurve,
};

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Nov 10, 2025
Copy link
Contributor

@atlv24 atlv24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to make the bevy_internal gltf feature enable bevy_mesh too so the DefaultPlugins initializes it and bevy:: prelude includes it

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Nov 15, 2025
Merged via the queue into bevyengine:main with commit 33a48a9 Nov 15, 2025
51 checks passed
beicause pushed a commit to beicause/bevy that referenced this pull request Nov 26, 2025
…evyengine#21793)

# Objective

- Fix `cargo b -p bevy_gltf --all-features`

## Solution

- Delete an unused symbol with the same name.
- Add the `bevy_mesh` feature on `bevy_animation` in `bevy_gltf`, so the
correct WeightsCurve is chosen.

## Testing

- CI, and running with `--all-features`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-glTF Related to the glTF 3D scene/model format C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants