From fcf32b3cff6e0604fae512febc0843c9ccd0dd51 Mon Sep 17 00:00:00 2001 From: Ayush Amawate <97389618+Ayush2k02@users.noreply.github.com> Date: Tue, 6 Jan 2026 19:20:32 +0530 Subject: [PATCH] Fix PNG exports being off by 1 pixel (#3582) use round() instead of as_uvec2() while exporting --- editor/src/node_graph_executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/node_graph_executor.rs b/editor/src/node_graph_executor.rs index 0d60d4cb..cb174e80 100644 --- a/editor/src/node_graph_executor.rs +++ b/editor/src/node_graph_executor.rs @@ -201,7 +201,7 @@ impl NodeGraphExecutor { ExportBounds::Artboard(id) => document.metadata().bounding_box_document(id), } .ok_or_else(|| "No bounding box".to_string())?; - let resolution = (bounds[1] - bounds[0]).as_uvec2(); + let resolution = (bounds[1] - bounds[0]).round().as_uvec2(); let transform = DAffine2::from_translation(bounds[0]).inverse(); let render_config = RenderConfig {