Skip to content
Snippets Groups Projects
Unverified Commit 3b42179c authored by John's avatar John Committed by GitHub
Browse files

Merge pull request #121 from asaaki/fix/minimize-crash

Allow minimising
parents e7fc09a0 43f7e931
No related branches found
No related tags found
No related merge requests found
......@@ -62,10 +62,12 @@ impl Node for MainPassUINode {
world: &World,
) -> Result<(), NodeRunError> {
let view_entity = graph.get_input_entity(Self::IN_VIEW)?;
let (transparent_phase, target) = self
.query
.get_manual(world, view_entity)
.expect("view entity should exist");
// adapted from bevy itself;
// see: <https://github.com/bevyengine/bevy/commit/09a3d8abe062984479bf0e99fcc1508bb722baf6>
let (transparent_phase, target) = match self.query.get_manual(world, view_entity) {
Ok(it) => it,
_ => return Ok(()),
};
// let clear_color = world.get_resource::<ClearColor>().unwrap();
{
let pass_descriptor = RenderPassDescriptor {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment