Implement a dialog for unsaved changes (#1241)

* Track unsaved scene changes

* Implement a dialog for unsaved changes

* Exclude all selection actions from scene change tracking
This commit is contained in:
Stanislav Denisov
2025-10-15 17:39:15 +02:00
committed by GitHub
parent 7318056235
commit a00fb8efc2
8 changed files with 190 additions and 16 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ void MaterialPickerWindow::RecreateButtons()
button.OnClick([entity, this](wi::gui::EventArgs args) {
wi::Archive& archive = editor->AdvanceHistory();
wi::Archive& archive = editor->AdvanceHistory(true);
archive << EditorComponent::HISTORYOP_SELECTION;
// record PREVIOUS selection state...
editor->RecordSelection(archive);