From 0cabe113c8b42f616743799b1c0932dbe73f8525 Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Mon, 14 Sep 2026 17:36:33 +0300 Subject: [PATCH] Fix helix height from point input --- src/modules/draw/draw/helix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/draw/draw/helix.rs b/src/modules/draw/draw/helix.rs index 20860e96f..224d6f215 100644 --- a/src/modules/draw/draw/helix.rs +++ b/src/modules/draw/draw/helix.rs @@ -284,7 +284,7 @@ impl CadCommand for HelixCommand { CmdResult::NeedPoint } Step::Final => { - let height = (point - self.center).dot(self.plane.z); + let height = point.distance(self.center); self.commit(height, self.plane.z) } Step::AxisEndpoint => { @@ -487,7 +487,7 @@ impl CadCommand for HelixCommand { self.top_radius = old; preview } - Step::Final => self.preview((point - self.center).dot(self.plane.z), self.plane.z), + Step::Final => self.preview(point.distance(self.center), self.plane.z), Step::AxisEndpoint => { let vector = point - self.center; let height = vector.length();