Fix bevy_gltf
PBR features not enabling corresponding bevy_pbr
flags (#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 ```
This commit is contained in:
parent
c1fedc2e2d
commit
ee4ed231da
@ -11,8 +11,10 @@ keywords = ["bevy"]
|
|||||||
[features]
|
[features]
|
||||||
dds = ["bevy_render/dds", "bevy_core_pipeline/dds"]
|
dds = ["bevy_render/dds", "bevy_core_pipeline/dds"]
|
||||||
pbr_transmission_textures = ["bevy_pbr/pbr_transmission_textures"]
|
pbr_transmission_textures = ["bevy_pbr/pbr_transmission_textures"]
|
||||||
pbr_multi_layer_material_textures = []
|
pbr_multi_layer_material_textures = [
|
||||||
pbr_anisotropy_texture = []
|
"bevy_pbr/pbr_multi_layer_material_textures",
|
||||||
|
]
|
||||||
|
pbr_anisotropy_texture = ["bevy_pbr/pbr_anisotropy_texture"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# bevy
|
# bevy
|
||||||
|
Loading…
Reference in New Issue
Block a user