From 4c62e2f50471289caeb512ed18df7667e35a0fcb Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 1 Dec 2026 10:42:31 +0100 Subject: [PATCH] Move whole-selection anchors with cached marks --- crates/ui-egui/src/canvas/selection.rs | 2 +- crates/ui-egui/src/canvas/selection/tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/canvas/selection.rs b/crates/ui-egui/src/canvas/selection.rs index 1f17587190..4f50576df8 100644 --- a/crates/ui-egui/src/canvas/selection.rs +++ b/crates/ui-egui/src/canvas/selection.rs @@ -770,7 +770,7 @@ impl SelectionMarks { o.paths.iter_mut().chain(o.key.as_mut()).for_each(|path| path.apply_affine(shift)); o.revision = outline_revision(&o.paths, o.key.as_ref(), o.color.to_array()); } - for knot in self.anchors.paths.iter_mut().flat_map(|p| &mut p.subpaths).flat_map(|sp| &mut sp.knots) { + for knot in self.anchors.paths.iter_mut().chain(&mut self.anchors.plain).flat_map(|p| &mut p.subpaths).flat_map(|sp| &mut sp.knots) { knot.anchor += by; knot.in_ctrl += by; knot.out_ctrl += by; diff --git a/crates/ui-egui/src/canvas/selection/tests.rs b/crates/ui-egui/src/canvas/selection/tests.rs index d3924c92b0..42e0bc620b 100644 --- a/crates/ui-egui/src/canvas/selection/tests.rs +++ b/crates/ui-egui/src/canvas/selection/tests.rs @@ -993,7 +993,7 @@ fn points_of(outlines: &[Outlined], anchors: &Anchors, dots: &Dots) -> Vec