mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 12:13:25 +00:00
remove ViewUniformOffset from inactive cameras (#16399)
# Objective - Fixes #16285 - Inactive camera are keeping the component `ViewUniformOffset` from when they were active, still matching some queries trying to render to them ## Solution - Remove component `ViewUniformOffset` from cameras that are inactive ## Testing - Ran example `render_primitives` and switched camera
This commit is contained in:
parent
56ac38120b
commit
bce19c1012
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
|||
use super::{ClearColorConfig, Projection};
|
||||
use crate::sync_world::TemporaryRenderEntity;
|
||||
use crate::view::RenderVisibleEntities;
|
||||
use crate::{
|
||||
batching::gpu_preprocessing::GpuPreprocessingSupport,
|
||||
camera::{CameraProjection, ManualTextureViewHandle, ManualTextureViews},
|
||||
|
@ -8,11 +6,12 @@ use crate::{
|
|||
render_asset::RenderAssets,
|
||||
render_graph::{InternedRenderSubGraph, RenderSubGraph},
|
||||
render_resource::TextureView,
|
||||
sync_world::TemporaryRenderEntity,
|
||||
sync_world::{RenderEntity, SyncToRenderWorld},
|
||||
texture::GpuImage,
|
||||
view::{
|
||||
ColorGrading, ExtractedView, ExtractedWindows, GpuCulling, Msaa, RenderLayers, Visibility,
|
||||
VisibleEntities,
|
||||
ColorGrading, ExtractedView, ExtractedWindows, GpuCulling, Msaa, RenderLayers,
|
||||
RenderVisibleEntities, ViewUniformOffset, Visibility, VisibleEntities,
|
||||
},
|
||||
Extract,
|
||||
};
|
||||
|
@ -1065,6 +1064,7 @@ pub fn extract_cameras(
|
|||
RenderLayers,
|
||||
Projection,
|
||||
GpuCulling,
|
||||
ViewUniformOffset,
|
||||
)>();
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue