From c5a406cb05da19199aecbcefa944feb039af7453 Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Tue, 17 Nov 2026 13:46:03 -0700 Subject: [PATCH] fix(transform): skew doesn't snap; wire the control module after the merge (M8) --- src/main.rs | 2 ++ src/stage.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a08034b4..3386a1e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,6 +78,8 @@ mod macros_ui; mod plugins_ui; mod prefs; mod recent; +#[cfg(not(target_arch = "wasm32"))] +mod remote; mod rulers; mod scale_grid; mod shape_envelope; diff --git a/src/stage.rs b/src/stage.rs index fca85a31..d11ac513 100644 --- a/src/stage.rs +++ b/src/stage.rs @@ -1362,7 +1362,8 @@ fn xf_snap(s: &mut anicraft_engine::Session, ring: &mut Option, kind: XfKi let pts = [pos2(b[0], b[1]), pos2(b[2], b[1]), pos2(b[2], b[3]), pos2(b[0], b[3]), pos2((b[0] + b[2]) * 0.5, (b[1] + b[3]) * 0.5)]; pts.into_iter().min_by(|p, q| p.distance(start).total_cmp(&q.distance(start))).unwrap_or(start) } - XfKind::Rotate => { + // Rotation and skew don't snap. + XfKind::Rotate | XfKind::Skew { .. } => { *ring = None; return c; }