mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Simpler generic syntax
This commit is contained in:
@@ -1604,10 +1604,10 @@ impl PreparedPlot {
|
|||||||
let mut axes_shapes = Vec::new();
|
let mut axes_shapes = Vec::new();
|
||||||
|
|
||||||
if self.show_grid.x {
|
if self.show_grid.x {
|
||||||
self.paint_grid::<{ X_AXIS }>(ui, &mut axes_shapes);
|
self.paint_grid::<X_AXIS>(ui, &mut axes_shapes);
|
||||||
}
|
}
|
||||||
if self.show_grid.y {
|
if self.show_grid.y {
|
||||||
self.paint_grid::<{ Y_AXIS }>(ui, &mut axes_shapes);
|
self.paint_grid::<Y_AXIS>(ui, &mut axes_shapes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort the axes by strength so that those with higher strength are drawn in front.
|
// Sort the axes by strength so that those with higher strength are drawn in front.
|
||||||
|
|||||||
Reference in New Issue
Block a user