Skip to content

Commit 9a01fbe

Browse files
committed
Add a comment
1 parent 53ad416 commit 9a01fbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/bevy_core_pipeline/src/main_pass_2d.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ 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
4245
let (transparent_phase, target) = match self.query.get_manual(world, view_entity) {
4346
Ok(it) => it,
4447
_ => return Ok(()),

0 commit comments

Comments
 (0)