Skip to content

Commit

Permalink
Remove already default options
Browse files Browse the repository at this point in the history
  • Loading branch information
devanlooches authored and hannobraun committed Aug 8, 2022
1 parent 9e61d87 commit 275eae7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions crates/fj-viewer/src/graphics/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,21 +426,18 @@ impl Renderer {
info
}

let line_drawing_available = self.is_line_drawing_available();
egui::SidePanel::right("fj-right-panel").show(
&self.egui.context,
|ui| {
ui.group(|ui| {
egui::ScrollArea::vertical()
.max_height(f32::INFINITY)
.max_width(f32::INFINITY)
.show(ui, |ui| {
ui.label(format!("Status:\n{}", status.status()))
});
egui::ScrollArea::vertical().show(ui, |ui| {
ui.label(format!("Status:\n{}", status.status()))
});
})
},
);

let line_drawing_available = self.is_line_drawing_available();
egui::SidePanel::left("fj-left-panel").show(&self.egui.context, |ui| {
ui.add_space(16.0);

Expand Down
2 changes: 1 addition & 1 deletion models/star/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn model(
fj::Angle::from_rad(2. * PI / num_vertices as f64 * i as f64);
let radius = if i % 2 == 0 { r1 } else { r2 };
(angle, radius)
});
})

// Now that we got that iterator prepared, generating the vertices is just a
// bit of trigonometry.
Expand Down

0 comments on commit 275eae7

Please sign in to comment.