From 8e83b2f8432742403fbe7e684fd1bae899441edd Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Mon, 21 Sep 2026 16:38:26 +0300 Subject: [PATCH] Aligned constraint: 2Lines turns the second line with the plain Parallel solve Only the first line's ends are pinned while the second line is made parallel, the way the Parallel constraint itself moves it; the distance is then measured on the solved geometry. Co-Authored-By: Claude Fable 5.1 --- src/app/command_driver.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/command_driver.rs b/src/app/command_driver.rs index b444ffd3b..1af8134cf 100644 --- a/src/app/command_driver.rs +++ b/src/app/command_driver.rs @@ -4000,13 +4000,11 @@ impl OpenCADStudio { id, self.constraint_bar_display, ); - // The first line stays; the second turns about its start - // to run parallel, as the reference keeps that start. - let mut pins = first_ends.to_vec(); - pins.push(second_ends[0]); + // The first line stays; the second turns parallel the way the + // Parallel constraint itself moves it. self.tabs[i].scene.bump_entities_with_parametric_policy( &[(second_line.entity, crate::scene::ChangeKind::Modified)], - &pins, + &first_ends, self.constraint_solve_mode, ); self.tabs[i].dirty = true;