Skip to content

Commit

Permalink
put update_frusta::<Projection> in UpdateProjectionFrusta set (#7526
Browse files Browse the repository at this point in the history
)

# Objective

- less ambiguities

- `update_frusta<PerspectiveProjection>` is in `UpdatePerspectiveFrusta` and `update_frusta<OrthographicProjection>` is in `UpdateOrthographicFrusta`, but `UpdateProjectionFrusta` is empty and `update_frusta<Projection>` is directly in `PostUpdate`

## Solution

- put `update_frusta<Projection>` in `UpdatePerspectiveFrusta` set

**Before**
![image](https://user-images.githubusercontent.com/22177966/217019086-22709204-0e39-4ffc-a43b-0175f86e17ec.png)
**After**
![image](https://user-images.githubusercontent.com/22177966/217019117-a28329a1-6614-490c-873f-773efadf6f41.png)
  • Loading branch information
jakobhellermann committed Feb 6, 2023
1 parent 5c680a3 commit e7e3b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/view/visibility/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl Plugin for VisibilityPlugin {
)
.add_system(
update_frusta::<Projection>
.in_base_set(CoreSet::PostUpdate)
.in_set(UpdateProjectionFrusta)
.after(camera_system::<Projection>)
.after(TransformSystem::TransformPropagate),
)
Expand Down

0 comments on commit e7e3b2c

Please sign in to comment.