bevy/crates/bevy_ui/src
Daniel McNab 09a3d8abe0 Allow minimising in 2d (#4527)
# Objective

- We can't minimise if there's a 2d camera because ??? there legally must be a 2d target.
- Fixes https://github.com/bevyengine/bevy/issues/4526
- Fixes https://github.com/bevyengine/bevy/issues/4856

## Solution

- Make it not crash in those cases, just do nothing
- Seems to work ¯\\_(ツ)_/¯
- See also the companion commit in https://github.com/bevyengine/bevy/pull/3597 - 503c24717321bb2bb2681b358020ad1bcbef510e

Co-authored-by: Asteria <asteria131@outlook.com>
2022-05-30 15:32:48 +00:00
..
flex Use lifetimed, type erased pointers in bevy_ecs (#3001) 2022-04-27 23:44:06 +00:00
render Allow minimising in 2d (#4527) 2022-05-30 15:32:48 +00:00
widget add #[reflect(Default)] to create default value for reflected types (#3733) 2022-05-03 19:20:13 +00:00
entity.rs use marker components for cameras instead of name strings (#3635) 2022-03-12 00:41:06 +00:00
focus.rs Fix mouse_clicked check for touches. (#2029) 2022-05-16 18:00:08 +00:00
geometry.rs Move Rect to bevy_ui and rename it to UiRect (#4276) 2022-04-25 19:20:38 +00:00
lib.rs Move Rect to bevy_ui and rename it to UiRect (#4276) 2022-04-25 19:20:38 +00:00
ui_node.rs add #[reflect(Default)] to create default value for reflected types (#3733) 2022-05-03 19:20:13 +00:00
update.rs Split bevy_hierarchy out from bevy_transform (#4168) 2022-03-15 01:54:05 +00:00