mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
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:
1 file changed
+4
-2
@@ -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)) => {
|
||||
|
||||
Reference in new issue
Block a user