mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
OK in the 3D dialog replaced its live preview with a new one before running the values again. The new preview no longer owned the interaction the dialog's preview had started, so it ran nothing while that interaction was open, and the commit then refused with "Finish the active edit first." With Preview on, OK left the dialog open and saved nothing, and a refused draft reported that message instead of the engine's reason. OK now forgets only the values the preview last ran (LivePreview::rerun_next) and keeps its interaction, so the values run again inside it and the commit keeps that interaction as one undo step. This fixes four vectorcraft-ui-egui tests that fail on main under both cargo test and cargo nextest: - dialogs::revolve::tests::lighting_presets_cancel_restores_an_existing_custom_light_rig - dialogs::three_d::unchanged_tests::refused_three_d_preview_confirmation_retries_the_same_draft - dialogs::three_d::unchanged_tests::three_d_dialog_changed_options_commit_once_or_cancel - dialogs::track_cube::precision_tests::screen_plane_keys_preserve_the_untouched_rotation_axes_through_preview_and_ok