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
@@ -169,7 +169,7 @@ void HumanoidWindow::Create(EditorComponent* _editor)
if (args.iValue < 0)
return;
wi::Archive& archive = editor->AdvanceHistory();
wi::Archive& archive = editor->AdvanceHistory(true);
archive << EditorComponent::HISTORYOP_SELECTION;
// record PREVIOUS selection state...
editor->RecordSelection(archive);