From e49542b0263d4131c584790062b2700f5ded7f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=94=E7=A9=B6=E7=A4=BE=E4=BA=A4?= Date: Mon, 2 May 2022 04:11:55 +0000 Subject: [PATCH] Rename `transparent_phase` to `opaque_phase` in `wireframe.rs` (#4639) # Objective - Meshes are queued in opaque phase instead of transparent phase when drawing wireframes. - There is a name mismatch. ## Solution - Rename `transparent_phase` to `opaque_phase` in `wireframe.rs`. --- crates/bevy_pbr/src/wireframe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_pbr/src/wireframe.rs b/crates/bevy_pbr/src/wireframe.rs index c79b045135..54e7f7d671 100644 --- a/crates/bevy_pbr/src/wireframe.rs +++ b/crates/bevy_pbr/src/wireframe.rs @@ -121,7 +121,7 @@ fn queue_wireframes( .get_id::() .unwrap(); let msaa_key = MeshPipelineKey::from_msaa_samples(msaa.samples); - for (view, mut transparent_phase) in views.iter_mut() { + for (view, mut opaque_phase) in views.iter_mut() { let view_matrix = view.transform.compute_matrix(); let view_row_2 = view_matrix.row(2); @@ -143,7 +143,7 @@ fn queue_wireframes( return; } }; - transparent_phase.add(Opaque3d { + opaque_phase.add(Opaque3d { entity, pipeline: pipeline_id, draw_function: draw_custom,