From f4fb0d187c50c952f2a460331d4ed86e37b15b34 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 19 Nov 2026 11:39:56 -0800 Subject: [PATCH] Transform: the corner command stops when the pending edit fails to settle set_rectangle_corners reported an error from finish_tool_edit and still ran object.setLiveShape on the selection. It now returns after reporting the error. --- crates/ui-egui/src/panels.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels.rs b/crates/ui-egui/src/panels.rs index 48e3aa5005..e73a83e9e1 100644 --- a/crates/ui-egui/src/panels.rs +++ b/crates/ui-egui/src/panels.rs @@ -146,8 +146,13 @@ fn set_rectangle_corners(app: &mut VectorcraftApp, mut p: Value, corner: Option< p["corners"] = corner.map_or(json!([0, 1, 2, 3]), |k| json!([k])); // The edit the tool computes on another thread comes first: the rectangles are the ones // selected after it. - let r = app.session.finish_tool_edit(); - crate::canvas::apply_requests(app, r); + match app.session.finish_tool_edit() { + Ok(reqs) => crate::canvas::apply_requests(app, Ok(reqs)), + Err(e) => { + app.status(e.to_string()); + return; + } + } if app.session.active().is_none() { return; }