Skip to content

Commit 2df9f5d

Browse files
DJMcNabsuperdump
andauthored
Update crates/bevy_core_pipeline/src/main_pass_2d.rs
Co-authored-by: Robert Swain <[email protected]>
1 parent 9a01fbe commit 2df9f5d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/bevy_core_pipeline/src/main_pass_2d.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ impl Node for MainPass2dNode {
3939
world: &World,
4040
) -> Result<(), NodeRunError> {
4141
let view_entity = graph.get_input_entity(Self::IN_VIEW)?;
42-
// If there's no view entity, pretend everything is fine
43-
// This fixes https://github.com/bevyengine/bevy/issues/4526
44-
// A better fix probably exists, but I don't know what it is
42+
// If there is no view entity, do not try to process the render phase for the view
4543
let (transparent_phase, target) = match self.query.get_manual(world, view_entity) {
4644
Ok(it) => it,
4745
_ => return Ok(()),

0 commit comments

Comments
 (0)