From 2b9261050f070fe8f47feb0b41d1523ec2267540 Mon Sep 17 00:00:00 2001 From: Dahak Builds Date: Mon, 2 Nov 2026 00:06:51 +0000 Subject: [PATCH] Sketch: stop tying expression-placed points to the origin with an automatic Coincident (#10703) (#10722) * claim: #10703 * Sketch: do not tie expression-placed points to the origin with an automatic Coincident A point whose coordinates are parameter expressions follows those expressions. When they came to 0 at draw time the point landed on the origin and connect_points tied it there with a Coincident, exactly like a snapped click; the next parameter change then conflicted with the tie. connect_points now skips points that carry exprs; plain-number points keep the snap. --------- Co-authored-by: Dahak Builds --- crates/engine/src/cmd/sketch.rs | 6 +++ .../engine/src/cmd/sketch_point_expr_tests.rs | 47 +++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/crates/engine/src/cmd/sketch.rs b/crates/engine/src/cmd/sketch.rs index 59e6c5992..df826210a 100644 --- a/crates/engine/src/cmd/sketch.rs +++ b/crates/engine/src/cmd/sketch.rs @@ -472,6 +472,9 @@ const CONNECT_TOL: f64 = 1e-6; /// New points (index `first` on) that land on an existing point, the origin included, get a /// coincident constraint to it, as when a click snaps there; `connect: false` leaves them free. +/// A point placed by parameter expressions is never tied: it follows its expressions, and a +/// Coincident to where the expressions happened to come to at draw time conflicts with the +/// next parameter change (#10703). fn connect_points(sk: &mut Sketch, first: usize, p: &Value) -> Result> { if !bool_(p, "connect").unwrap_or(true) { return Ok(Vec::new()); @@ -481,6 +484,9 @@ fn connect_points(sk: &mut Sketch, first: usize, p: &Value) -> Result