Skip to content

Commit e49542b

Browse files
committed
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`.
1 parent 7d21ca3 commit e49542b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_pbr/src/wireframe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn queue_wireframes(
121121
.get_id::<DrawWireframes>()
122122
.unwrap();
123123
let msaa_key = MeshPipelineKey::from_msaa_samples(msaa.samples);
124-
for (view, mut transparent_phase) in views.iter_mut() {
124+
for (view, mut opaque_phase) in views.iter_mut() {
125125
let view_matrix = view.transform.compute_matrix();
126126
let view_row_2 = view_matrix.row(2);
127127

@@ -143,7 +143,7 @@ fn queue_wireframes(
143143
return;
144144
}
145145
};
146-
transparent_phase.add(Opaque3d {
146+
opaque_phase.add(Opaque3d {
147147
entity,
148148
pipeline: pipeline_id,
149149
draw_function: draw_custom,

0 commit comments

Comments
 (0)