bevy/crates/bevy_scene/src
Zhixing Zhang 2aaaed7f69
Make bevy_render an optional dependency of bevy_scene (#8136)
# 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.
2023-04-03 21:23:26 +00:00
..
bundle.rs Make bevy_render an optional dependency of bevy_scene (#8136) 2023-04-03 21:23:26 +00:00
dynamic_scene_builder.rs (De) serialize resources in scenes (#6846) 2023-03-20 21:17:02 +00:00
dynamic_scene.rs Bugfix: Scene reload fix (nonbreaking) (#7951) 2023-03-27 22:18:45 +00:00
lib.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
scene_loader.rs Make bevy_render an optional dependency of bevy_scene (#8136) 2023-04-03 21:23:26 +00:00
scene_spawner.rs (De) serialize resources in scenes (#6846) 2023-03-20 21:17:02 +00:00
scene.rs Bugfix: Scene reload fix (nonbreaking) (#7951) 2023-03-27 22:18:45 +00:00
serde.rs (De) serialize resources in scenes (#6846) 2023-03-20 21:17:02 +00:00