Skip to content

Commit

Permalink
fix sub app mutability
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann committed Dec 24, 2021
1 parent bab06b3 commit 636ee31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ impl Plugin for EguiPlugin {
world.get_resource_or_insert_with(EguiClipboard::default);
world.insert_resource(EguiContext::new());

let render_app = &mut app.get_sub_app(RenderApp).unwrap();
let render_app = &mut app.sub_app_mut(RenderApp);
render_app.init_resource::<egui_node::EguiPipeline>();
render_app
.add_system_to_stage(
Expand Down

0 comments on commit 636ee31

Please sign in to comment.