Skip to content

Commit

Permalink
Add With<CameraActive> to all ViewNode.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Oct 19, 2024
1 parent e5f2907 commit 05bd115
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_render/src/render_graph/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
renderer::RenderContext,
};
pub use bevy_ecs::label::DynEq;
use bevy_ecs::query::QueryFilter;
use bevy_ecs::query::{QueryFilter, With};
use bevy_ecs::{
define_label,
intern::Interned,
Expand All @@ -19,7 +19,7 @@ use bevy_utils::all_tuples_with_size;
use core::fmt::Debug;
use derive_more::derive::{Display, Error, From};
use downcast_rs::{impl_downcast, Downcast};

use crate::camera::CameraActive;
use super::{InternedRenderSubGraph, RenderSubGraph};

define_label!(
Expand Down Expand Up @@ -366,7 +366,7 @@ pub trait ViewNode {
///
/// This [`Node`] exists to help reduce boilerplate when making a render node that runs on a view.
pub struct ViewNodeRunner<N: ViewNode> {
view_query: QueryState<N::ViewQuery, N::ViewFilter>,
view_query: QueryState<N::ViewQuery, (N::ViewFilter, With<CameraActive>)>,
node: N,
}

Expand Down

0 comments on commit 05bd115

Please sign in to comment.