Auto-Trace: traced outlines map back into layer space (#2764)

Co-authored-by: Chewybone-sudo <347238078+Chewybone-sudo@users.noreply.github.com>
This commit is contained in:
tylerjenningsw
2026-11-01 09:05:56 -05:00
co-authored by Chewybone-sudo
parent 49774ca5f9
commit 3ab2167e47
+3 -2
View File
@@ -64,8 +64,9 @@ fn trace_frame(img: &Image, offset: [f64; 2], ch: Channel, invert: bool, blur: f
let mut out = trace(&field, img.width as usize, img.height as usize, o);
for t in &mut out {
for v in &mut t.path.vertices {
v[0] += offset[0];
v[1] += offset[1];
// Source buffers are layer pixels + offset: subtract it to get back to layer space.
v[0] -= offset[0];
v[1] -= offset[1];
}
}
out