From bcacd239c731a940c7f59902ce1b44e8405ca156 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Wed, 2 Dec 2026 11:29:28 -0800 Subject: [PATCH] Hide Perspective Crop controls when the quad is cleared --- crates/ui-egui/src/tools/perspective_crop_ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tools/perspective_crop_ui.rs b/crates/ui-egui/src/tools/perspective_crop_ui.rs index 37340c8fe8b..5516a532484 100644 --- a/crates/ui-egui/src/tools/perspective_crop_ui.rs +++ b/crates/ui-egui/src/tools/perspective_crop_ui.rs @@ -135,7 +135,7 @@ pub(crate) fn drain(app: &mut PhotocraftApp, state: &mut PerspectiveCrop, _respo /// The control reads the frame's keys itself and an applied quad is gone from the tool, so a second pass of the frame /// applies nothing of the first. pub fn body(app: &mut PhotocraftApp, ui: &mut egui::Ui, rect: egui::Rect) { - if app.ui.tool != Tool::PerspectiveCrop || app.session.active().is_none() { + if app.ui.tool != Tool::PerspectiveCrop || app.session.active().is_none() || app.canvas_tools.perspective.tool.quad().is_none() { return; } let input = input(app);