bevy/crates/bevy_render/src/view
Zicklag cfba7312ef Reflect Default for ComputedVisibility and Handle<T> (#6187)
# Objective

- Reflecting `Default` is required for scripts to create `Reflect` types at runtime with no static type information.
- Reflecting `Default` on `Handle<T>` and `ComputedVisibility` should allow scripts from `bevy_mod_js_scripting` to actually spawn sprites from scratch, without needing any hand-holding from the host-game.

## Solution

- Derive `ReflectDefault` for `Handle<T>` and `ComputedVisiblity`.

---

## Changelog

> This section is optional. If this was a trivial fix, or has no externally-visible impact, you can delete this section.

- The `Default` trait is now reflected for `Handle<T>` and `ComputedVisibility`
2022-10-06 19:31:47 +00:00
..
visibility Reflect Default for ComputedVisibility and Handle<T> (#6187) 2022-10-06 19:31:47 +00:00
mod.rs adjust cluster index for viewport origin (#5947) 2022-09-15 21:58:14 +00:00
window.rs Reconfigure surface on present mode change (#6049) 2022-09-21 22:35:15 +00:00