Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Add VisibilityBundle and use it to fix gltfs, scenes, and examples #5335

Closed
wants to merge 2 commits into from

Conversation

rparrett
Copy link
Contributor

@rparrett rparrett commented Jul 16, 2022

Objective

Gltfs, and a few examples were broken by #5310. Fix em.

Closes #5334

Solution

Add VisibilityBundle as described here: #5334 (comment) and sprinkle it around where needed.

@mockersf mockersf added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen labels Jul 16, 2022
@cart
Copy link
Member

cart commented Jul 16, 2022

bors r+

bors bot pushed a commit that referenced this pull request Jul 16, 2022
…5335)

# Objective

Gltfs, and a few examples were broken by #5310. Fix em.

Closes #5334

## Solution

Add `VisibilityBundle` as described here: #5334 (comment) and sprinkle it around where needed.
@bors
Copy link
Contributor

bors bot commented Jul 16, 2022

Canceled.

@rparrett
Copy link
Contributor Author

Oops. Thought that was a bors failure and not a CI failure in my email inbox, and I snuck in a commit to put VisibilityBundle in the prelude, canceling bors.

@cart
Copy link
Member

cart commented Jul 16, 2022

bors r+

bors bot pushed a commit that referenced this pull request Jul 16, 2022
…5335)

# Objective

Gltfs, and a few examples were broken by #5310. Fix em.

Closes #5334

## Solution

Add `VisibilityBundle` as described here: #5334 (comment) and sprinkle it around where needed.
@bors bors bot changed the title Add VisibilityBundle and use it to fix gltfs, scenes, and examples [Merged by Bors] - Add VisibilityBundle and use it to fix gltfs, scenes, and examples Jul 16, 2022
@bors bors bot closed this Jul 16, 2022
inodentry pushed a commit to IyesGames/bevy that referenced this pull request Aug 8, 2022
…evyengine#5335)

# Objective

Gltfs, and a few examples were broken by bevyengine#5310. Fix em.

Closes bevyengine#5334

## Solution

Add `VisibilityBundle` as described here: bevyengine#5334 (comment) and sprinkle it around where needed.
james7132 pushed a commit to james7132/bevy that referenced this pull request Oct 28, 2022
…evyengine#5335)

# Objective

Gltfs, and a few examples were broken by bevyengine#5310. Fix em.

Closes bevyengine#5334

## Solution

Add `VisibilityBundle` as described here: bevyengine#5334 (comment) and sprinkle it around where needed.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
…evyengine#5335)

# Objective

Gltfs, and a few examples were broken by bevyengine#5310. Fix em.

Closes bevyengine#5334

## Solution

Add `VisibilityBundle` as described here: bevyengine#5334 (comment) and sprinkle it around where needed.
@Neo-Zhixing
Copy link
Contributor

I would like to push back on this change, it is not necessary for bevy_scene to depend on bevy_render. See #8136

mockersf pushed a commit that referenced this pull request Apr 3, 2023
# Objective

bevy-scene does not have a reason to depend on bevy-render except to
include the `Visibility` and `ComputedVisibility` components. Including
that in the dependency chain is unnecessary for people not using
`bevy_render`.

Also fixed a problem where compilation fails when the `serialize`
feature was not enabled.

## Solution

This was added in #5335 to address some of the problems caused by #5310.

Imo the user just always have to remember to include `VisibilityBundle`
when they spawn `SceneBundle` or `DynamicSceneBundle`, but that will be
a breaking change. This PR makes `bevy_render` an optional dependency of
`bevy_scene` instead to respect the existing behavior.
Estus-Dev pushed a commit to Estus-Dev/bevy that referenced this pull request Jul 10, 2023
# Objective

bevy-scene does not have a reason to depend on bevy-render except to
include the `Visibility` and `ComputedVisibility` components. Including
that in the dependency chain is unnecessary for people not using
`bevy_render`.

Also fixed a problem where compilation fails when the `serialize`
feature was not enabled.

## Solution

This was added in bevyengine#5335 to address some of the problems caused by bevyengine#5310.

Imo the user just always have to remember to include `VisibilityBundle`
when they spawn `SceneBundle` or `DynamicSceneBundle`, but that will be
a breaking change. This PR makes `bevy_render` an optional dependency of
`bevy_scene` instead to respect the existing behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Children are invisible unless parent has Visibility and ComputedInvisibility
4 participants