Skip to content

[Merged by Bors] - Cherry pick "bevy_reflect: Register missing reflected types for bevy_render (#6725)"#6811

Closed
cart wants to merge 1 commit intobevyengine:release-0.9.1from
cart:cherry-pick-6725
Closed

[Merged by Bors] - Cherry pick "bevy_reflect: Register missing reflected types for bevy_render (#6725)"#6811
cart wants to merge 1 commit intobevyengine:release-0.9.1from
cart:cherry-pick-6725

Conversation

@cart
Copy link
Copy Markdown
Member

@cart cart commented Dec 1, 2022

This had merge conflicts with the 0.9.1 release branch, so this had to be merged manually. Creating a PR for visibility + a final review.

…yengine#6725)

Many types in `bevy_render` implemented `Reflect` but were not registered.

Register all types in `bevy_render` that impl `Reflect`.

This also registers additional dependent types (i.e. field types).

> Note: Adding these dependent types would not be needed using something like bevyengine#5781 😉

---

- Register missing `bevy_render` types in the `TypeRegistry`:
  - `camera::RenderTarget`
  - `globals::GlobalsUniform`
  - `texture::Image`
  - `view::ComputedVisibility`
  - `view::Visibility`
  - `view::VisibleEntities`
- Register additional dependent types:
  - `view::ComputedVisibilityFlags`
  - `Vec<Entity>`
Copy link
Copy Markdown
Member

@MrGVSV MrGVSV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

For others' reference, the only difference from #6725 is that this one doesn't have ComputedVisibilityFlags

@cart
Copy link
Copy Markdown
Member Author

cart commented Dec 1, 2022

Lets see if this merges as-is or if we need to cherry pick the CI fixes :)

@cart
Copy link
Copy Markdown
Member Author

cart commented Dec 1, 2022

bors r+

@hymm
Copy link
Copy Markdown
Contributor

hymm commented Dec 1, 2022

FYI you shouldn't need the miri one as it hasn't been a part of r+'s for awhile

bors bot pushed a commit that referenced this pull request Dec 1, 2022
…_render` (#6725)" (#6811)

This had merge conflicts with the 0.9.1 release branch, so this had to be merged manually. Creating a PR for visibility + a final review.
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Dec 1, 2022

Build failed:

@cart
Copy link
Copy Markdown
Member Author

cart commented Dec 1, 2022

Should be fixed now after cherry picking the relevant CI fixes into the 0.9.1 branch.

@cart
Copy link
Copy Markdown
Member Author

cart commented Dec 1, 2022

bors r+

bors bot pushed a commit that referenced this pull request Dec 1, 2022
…_render` (#6725)" (#6811)

This had merge conflicts with the 0.9.1 release branch, so this had to be merged manually. Creating a PR for visibility + a final review.
@bors bors bot changed the title Cherry pick "bevy_reflect: Register missing reflected types for bevy_render (#6725)" [Merged by Bors] - Cherry pick "bevy_reflect: Register missing reflected types for bevy_render (#6725)" Dec 1, 2022
@bors bors bot closed this Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants