mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Warp grid type test: clear the pass's texture deltas
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b87a7818ff
commit
07ee5d7e86
1 file changed
+3
-1
@@ -10,10 +10,12 @@ fn shows_grid(app: &PhotocraftApp) -> bool {
|
||||
let (Some(t), Some(pv)) = (app.ui.transform.as_ref(), app.transform_preview.as_ref()) else { panic!("Warp is open") };
|
||||
let w = t.session.warp().expect("the Warp phase");
|
||||
let mut out = Shown::default();
|
||||
let _ = egui::Context::default().run_ui(Default::default(), |ui| {
|
||||
let mut output = egui::Context::default().run_ui(Default::default(), |ui| {
|
||||
let rect = ui.max_rect();
|
||||
show_warp(t, pv, w, ui, rect, &mut out);
|
||||
});
|
||||
// The pass's font atlas upload is not for a renderer here.
|
||||
output.textures_delta.clear();
|
||||
out.mesh.is_some()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user