Fix helix height from point input

This commit is contained in:
ramox81 committed 2026-09-14 17:36:33 +03:00
1 parent fc1788df65
commit 0cabe113c8
1 file changed
+2 -2
+2 -2
View File
@@ -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();