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; }