This commit is contained in:
griffi-gh 2023-11-25 16:19:16 +01:00
parent 257f7bb130
commit aa4f40a767

View file

@ -28,9 +28,9 @@ pub fn kubi_ui_end(
mut ui: NonSendSync<UniqueViewMut<UiState>> mut ui: NonSendSync<UniqueViewMut<UiState>>
) { ) {
let ui: &mut UiState = &mut ui; let ui: &mut UiState = &mut ui;
let UiState { kui: ui, renderer } = ui; let UiState { kui, renderer } = ui;
ui.end(); kui.end();
let (upload_needed, plan) = ui.draw_plan(); let (upload_needed, plan) = kui.draw_plan();
if upload_needed { if upload_needed {
renderer.update(plan); renderer.update(plan);
} }