Skip to content

Commit

Permalink
fix: projects with one 2d and one 3d camera (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Angelo <>
  • Loading branch information
AngeloMateus committed May 13, 2024
1 parent d25d787 commit 845cfa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/render/prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl PrepareRenderInstance for ExtractedRenderAsset {

pub fn prepare_vector_affines(
mut commands: Commands,
camera: Query<(&ExtractedCamera, &ExtractedView)>,
camera: Query<(&ExtractedCamera, &ExtractedView), With<Camera2d>>,
mut render_vectors: Query<(Entity, &ExtractedRenderAsset)>,
pixel_scale: Res<ExtractedPixelScale>,
) {
Expand All @@ -136,7 +136,7 @@ pub fn prepare_vector_affines(

pub fn prepare_scene_affines(
mut commands: Commands,
camera: Query<(&ExtractedCamera, &ExtractedView)>,
camera: Query<(&ExtractedCamera, &ExtractedView), With<Camera2d>>,
mut render_vectors: Query<(Entity, &ExtractedRenderScene)>,
pixel_scale: Res<ExtractedPixelScale>,
) {
Expand Down Expand Up @@ -201,7 +201,7 @@ pub fn prepare_scene_affines(

pub fn prepare_text_affines(
mut commands: Commands,
camera: Query<(&ExtractedCamera, &ExtractedView)>,
camera: Query<(&ExtractedCamera, &ExtractedView), With<Camera2d>>,
render_texts: Query<(Entity, &ExtractedRenderText)>,
pixel_scale: Res<ExtractedPixelScale>,
) {
Expand Down

0 comments on commit 845cfa7

Please sign in to comment.