mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Hide Perspective Crop controls when the quad is cleared
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user