bevy/crates
KDecay bf085ee1d2 Remove Size and UiRect generics (#5404)
# Objective

- Migrate changes from #3503.

## Solution

- Change `Size<T>` and `UiRect<T>` to `Size` and `UiRect` using `Val`.
- Implement `Sub`, `SubAssign`, `Mul`, `MulAssign`, `Div` and `DivAssign` for `Val`.
- Update tests for `Size`.

---

## Changelog

### Changed

- The generic `T` of `Size` and `UiRect` got removed and instead they both now always use `Val`.

## Migration Guide

- The generic `T` of `Size` and `UiRect` got removed and instead they both now always use `Val`. If you used a `Size<f32>` consider replacing it with a `Vec2` which is way more powerful.


Co-authored-by: KDecay <KDecayMusic@protonmail.com>
2022-08-01 16:27:16 +00:00
..
bevy_animation Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_app Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_asset Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_audio Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_core Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_core_pipeline Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_derive Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_diagnostic Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_dylib Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_dynamic_plugin Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_ecs Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_ecs_compile_fail_tests Replace many_for_each_mut with iter_many_mut. (#5402) 2022-07-30 01:38:13 +00:00
bevy_encase_derive Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_gilrs Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_gltf Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_hierarchy Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_input Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_internal Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_log Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_macro_utils Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_math Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_mikktspace Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_pbr Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_ptr Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_reflect Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_render Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_scene Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_sprite Fix View by adding missing fields present in ViewUniform (#5512) 2022-07-31 19:10:53 +00:00
bevy_tasks Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_text Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_time Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_transform Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_ui Remove Size and UiRect generics (#5404) 2022-08-01 16:27:16 +00:00
bevy_utils Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_window Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00
bevy_winit Release 0.8.0 (#5490) 2022-07-30 14:07:30 +00:00