Merge pull request #9970 from dotCooCoo/fix/main-revolve-lighting

Main: 3D dialogs end the running preview before OK checks the values again
This commit is contained in:
.CooCoo authored and GitHub committed 2026-11-28 11:26:09 -08:00
commit 365b24bdf4
1 file changed
+4 -2
+4 -2
View File
@@ -254,8 +254,10 @@ fn ok(app: &mut VectorcraftApp, answer: &ParamResult) -> Result<(), String> {
return Err(why);
}
let (cmd, p, _) = s.request(&answer.fields);
// OK must validate afresh: the live preview also caches refused requests.
s.preview = LivePreview::default();
// OK must validate afresh: the live preview also caches refused requests. The running preview is ended first;
// a fresh preview refuses to start while another interaction is open, which left OK refused and the old
// preview's interaction open.
s.cancel_preview(app);
match s.run_preview(app, cmd, &p) {
Some(Ok(())) if finish_unchanged_preview(app) => return Ok(()),
Some(Err(why)) => {