Skip to content

Commit e7e3b2c

Browse files
put update_frusta::<Projection> in UpdateProjectionFrusta set (#7526)
# 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)
1 parent 5c680a3 commit e7e3b2c

File tree

1 file changed

+1
-1
lines changed
  • crates/bevy_render/src/view/visibility

1 file changed

+1
-1
lines changed

crates/bevy_render/src/view/visibility/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl Plugin for VisibilityPlugin {
247247
)
248248
.add_system(
249249
update_frusta::<Projection>
250-
.in_base_set(CoreSet::PostUpdate)
250+
.in_set(UpdateProjectionFrusta)
251251
.after(camera_system::<Projection>)
252252
.after(TransformSystem::TransformPropagate),
253253
)

0 commit comments

Comments
 (0)