mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
Simpler generic syntax
This commit is contained in:
@@ -1604,10 +1604,10 @@ impl PreparedPlot {
|
||||
let mut axes_shapes = Vec::new();
|
||||
|
||||
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 {
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user