Skip to content

Commit f705db3

Browse files
committed
make it compile
1 parent 450bc20 commit f705db3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

editor/src/messages/portfolio/document/overlays/utility_types_vello.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,9 @@ impl OverlayContext {
379379
self.scene.stroke(&kurbo::Stroke::new(1.0), self.get_transform(), Self::parse_color(COLOR_OVERLAY_BLUE), None, &path);
380380
}
381381

382-
pub fn draw_arc_gizmo_angle(&mut self, pivot: DVec2, bold_radius: f64, dash_radius: f64, arc_radius: f64, offset_angle: f64, angle: f64) {
382+
pub fn draw_arc_gizmo_angle(&mut self, pivot: DVec2, bold_radius: f64, arc_radius: f64, offset_angle: f64, angle: f64) {
383383
let end_point1 = pivot + bold_radius * DVec2::from_angle(angle + offset_angle);
384-
let end_point2 = pivot + dash_radius * DVec2::from_angle(offset_angle);
385384
self.line(pivot, end_point1, None, None);
386-
self.dashed_line(pivot, end_point2, None, None, Some(2.), Some(2.), Some(0.5));
387385
self.draw_arc(pivot, arc_radius, offset_angle, (angle) % TAU + offset_angle);
388386
}
389387

@@ -542,9 +540,9 @@ impl OverlayContext {
542540
}
543541

544542
#[allow(clippy::too_many_arguments)]
545-
pub fn arc_sweep_angle(&mut self, offset_angle: f64, angle: f64, end_point_position: DVec2, bold_radius: f64, dash_radius: f64, pivot: DVec2, text: &str, transform: DAffine2) {
543+
pub fn arc_sweep_angle(&mut self, offset_angle: f64, angle: f64, end_point_position: DVec2, bold_radius: f64, pivot: DVec2, text: &str, transform: DAffine2) {
546544
self.manipulator_handle(end_point_position, true, Some(COLOR_OVERLAY_RED));
547-
self.draw_arc_gizmo_angle(pivot, bold_radius, dash_radius, ARC_SWEEP_GIZMO_RADIUS, offset_angle, angle.to_radians());
545+
self.draw_arc_gizmo_angle(pivot, bold_radius, ARC_SWEEP_GIZMO_RADIUS, offset_angle, angle.to_radians());
548546
self.text(text, COLOR_OVERLAY_BLUE, None, transform, 16., [Pivot::Middle, Pivot::Middle]);
549547
}
550548

0 commit comments

Comments
 (0)