Commit 6e93c2e
fix: add missing png feature to bevy_feathers feature (#24727)
# Objective
If `bevy_feathers` is used without default features, then the built-in
feathers icons arn't displayed with no warnings.
## Solution
Add `png` feature flag to `bevy_feathers` since it has all it's widget
icons as pngs.
An alternate solution would be to add a warning instead somehow.
## Testing
Add a simple scene with `FeathersDisclosureToggle` (or any other icon
using widget) and test it with no default features (but still necessary
render features):
Pre-fix there will be nothing dispalyed but it will work fine post-fix.
(Example command for linux)
```
cargo run --no-default-features --features "bevy_winit,bevy_ui_render,scene,default_font,x11,bevy_state,bevy_asset,bevy_log,multi_threaded,async_executor,reflect_auto_register,bevy_feathers"
```
Fixes #24682
Co-authored-by: Sigma <antonin.programming@gmail.com>1 parent f4d3026 commit 6e93c2e
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| |||
0 commit comments