Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bevy_gltf PBR features not enabling corresponding bevy_pbr flags #14486

Merged
merged 2 commits into from
Jul 26, 2024

Conversation

BD103
Copy link
Member

@BD103 BD103 commented Jul 26, 2024

Objective

  • bevy_gltf does not build with only the pbr_multi_layer_material_textures or pbr_anisotropy_texture features.

Solution

  • This error was due to the feature not enabling the corresponding feature in bevy_pbr. Adding these flags as a dependency fixes this error.

Testing

The following commands fail on main, but pass with this PR:

cargo check -p bevy_gltf --no-default-features -F pbr_multi_layer_material_textures
cargo check -p bevy_gltf --no-default-features -F pbr_anisotropy_texture

@BD103 BD103 added C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jul 26, 2024
@alice-i-cecile alice-i-cecile added this to the 0.15 milestone Jul 26, 2024
@JMS55
Copy link
Contributor

JMS55 commented Jul 26, 2024

@alice-i-cecile this should be 0.14.1 no?

@BD103
Copy link
Member Author

BD103 commented Jul 26, 2024

@alice-i-cecile this should be 0.14.1 no?

I don't think it would hurt, but it's also unlikely that someone would run into this issue and require the fix. I'm happy without whatever Alice decides :)

@janhohenheim janhohenheim 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 Jul 26, 2024
@janhohenheim janhohenheim modified the milestones: 0.15, 0.14.1 Jul 26, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jul 26, 2024
Merged via the queue into bevyengine:main with commit ee4ed23 Jul 26, 2024
31 checks passed
@BD103 BD103 deleted the gltf-pbr-textures branch July 26, 2024 22:32
mockersf pushed a commit that referenced this pull request Aug 2, 2024
…ags (#14486)

# Objective

- `bevy_gltf` does not build with only the
`pbr_multi_layer_material_textures` or `pbr_anisotropy_texture`
features.
- Caught by [`flag-frenzy`](https://github.com/TheBevyFlock/flag-frenzy)
in [this
run](https://github.com/TheBevyFlock/flag-frenzy/actions/runs/10087486444/job/27891723948).

## Solution

- This error was due to the feature not enabling the corresponding
feature in `bevy_pbr`. Adding these flags as a dependency fixes this
error.

## Testing

The following commands fail on `main`, but pass with this PR:

```bash
cargo check -p bevy_gltf --no-default-features -F pbr_multi_layer_material_textures
cargo check -p bevy_gltf --no-default-features -F pbr_anisotropy_texture
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen 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.

4 participants