Hide Perspective Crop controls when the quad is cleared

This commit is contained in:
yoriswind committed 2026-12-02 11:29:28 -08:00
1 parent 7be57ed193
commit bcacd239c7
1 file changed
+1 -1
@@ -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);